diff --git a/wintable/main.c b/wintable/main.c index 5edf1ed..129b116 100644 --- a/wintable/main.c +++ b/wintable/main.c @@ -180,7 +180,7 @@ static void drawItems(struct table *t, HDC dc, RECT cliprect) if (last >= t->count) last = t->count; - y = 0; + y = first * tm.tmHeight; for (i = first; i < last; i++) { RECT rsel; HBRUSH background;