fixed a small top-margin issue.

This commit is contained in:
Erik Faye-Lund 2007-11-22 20:36:59 +00:00
parent b6f05fa0a6
commit 2276865d6a

View File

@ -68,10 +68,10 @@ void setScrollPos(HWND hwnd, int newScrollPosX, int newScrollPosY)
void paintTracks(HDC hdc, RECT rcTracks) void paintTracks(HDC hdc, RECT rcTracks)
{ {
char temp[256]; char temp[256];
int firstLine = scrollPosY / fontHeight; int firstLine = scrollPosY + (rcTracks.top) / fontHeight;
int lastLine = scrollPosY + (rcTracks.bottom + fontHeight - 1) / fontHeight; int lastLine = scrollPosY + (rcTracks.bottom + fontHeight - 1) / fontHeight;
int trackLeft = -scrollPosX; int trackLeft = -scrollPosX;
for (int x = 0; x < 10; ++x) for (int x = 0; x < 10; ++x)
{ {