From 1a63e1875648049da602e005ebc845e89e7afc39 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 16 Jan 2007 05:53:17 +0000 Subject: [PATCH] The topcap and bottomcap can overlap, when the hold is very small. When this happens, fYHead (the end of the topcap) will be greater than fYTail (the start of the bottomcap). We want to clip rendering of one of them, so we don't draw them both in the same spot. However, we're clipping both of them: the topcap to the bottomcap's actual start and the bottomcap to the topcap's actual end. This leaves a gap between them. Only clip the bottomcap. --- stepmania/src/NoteDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index db7414fa32..86efee738d 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -561,7 +561,7 @@ void NoteDisplay::DrawHoldBody( const TapNote& tn, int iCol, float fBeat, bool b fDrawDistanceAfterTargetsPixels, fDrawDistanceBeforeTargetsPixels, fFadeInPercentOfDrawFar, tn.HoldResult.fOverlappedTime, fYHead-fFrameHeightTop, fYHead, - fYStartPos, min(fYEndPos, fYTail), + fYStartPos, fYEndPos, false, bTopAnchor, bFlipHoldBody ); // Draw the body