summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wintable/new/draw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wintable/new/draw.h b/wintable/new/draw.h
index dc19788..409a1ad 100644
--- a/wintable/new/draw.h
+++ b/wintable/new/draw.h
@@ -100,6 +100,8 @@ static void draw(struct table *t, HDC dc, RECT cliprect, RECT client)
p.x += p.width;
}
p.y += p.height;
+ if (p.y >= client.bottom) // >= because RECT.bottom is the first pixel outside the rect
+ break;
}
deselectFont(dc, prevfont, newfont);