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.
This commit is contained in:
Glenn Maynard
2007-01-16 05:53:17 +00:00
parent 8708b2ca65
commit 1a63e18756
+1 -1
View File
@@ -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