fixed a small top-margin issue.
This commit is contained in:
parent
b6f05fa0a6
commit
2276865d6a
@ -68,10 +68,10 @@ void setScrollPos(HWND hwnd, int newScrollPosX, int newScrollPosY)
|
||||
void paintTracks(HDC hdc, RECT rcTracks)
|
||||
{
|
||||
char temp[256];
|
||||
|
||||
int firstLine = scrollPosY / fontHeight;
|
||||
|
||||
int firstLine = scrollPosY + (rcTracks.top) / fontHeight;
|
||||
int lastLine = scrollPosY + (rcTracks.bottom + fontHeight - 1) / fontHeight;
|
||||
|
||||
|
||||
int trackLeft = -scrollPosX;
|
||||
for (int x = 0; x < 10; ++x)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user