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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user