From 2276865d6a9e8141d5eb2e5b81e9c27c9ffbced0 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 22 Nov 2007 20:36:59 +0000 Subject: [PATCH] fixed a small top-margin issue. --- synctracker2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synctracker2.cpp b/synctracker2.cpp index c80f1d2..55d1261 100644 --- a/synctracker2.cpp +++ b/synctracker2.cpp @@ -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) {