Optimized Table drawing by only drawing visible rows.
This commit is contained in:
parent
c016143d80
commit
663e9e99a7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue