Skip to content

Commit

Permalink
CF_GetScrollInfo: fix case of first track with spacer
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybernstein committed Oct 27, 2023
1 parent 464a5a1 commit 2875f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cfillion/cfillion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ BOOL CF_GetScrollInfo(HWND hwnd, const int bar, LPSCROLLINFO si)
MediaTrack *track { CSurf_TrackFromID(i, false) };
if(TcpVis(track)) {
si->nPos = -static_cast<int>(GetMediaTrackInfo_Value(track, "I_TCPY"));
si->nPos += GetTrackSpacerSize(track);
si->fMask &= ~SIF_POS;
break;
}
Expand Down

0 comments on commit 2875f08

Please sign in to comment.