From b51ea6f96a5146bd8627bd476eb952f7355c62e6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 7 Jan 2007 01:55:48 +0000 Subject: [PATCH] swap offsets too --- stepmania/src/NoteDisplay.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index c2ffd2f49d..c413ca7230 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -635,11 +635,15 @@ void NoteDisplay::DrawHold( const TapNote &tn, int iCol, int iRow, bool bIsBeing if( bStartIsPastPeak && !bEndIsPastPeak ) fEndYOffset = fEndPeakYOffset; // use the calculated PeakYOffset so that long holds don't appear to grow + // Swap in reverse, so fStartYOffset is always the offset higher on the screen. + if( bReverse ) + swap( fStartYOffset, fEndYOffset ); + float fStartYPos = ArrowEffects::GetYPos( m_pPlayerState, iCol, fStartYOffset, fReverseOffsetPixels ); float fEndYPos = ArrowEffects::GetYPos( m_pPlayerState, iCol, fEndYOffset, fReverseOffsetPixels ); - const float fYHead = bReverse ? fEndYPos : fStartYPos; // the center of the head - const float fYTail = bReverse ? fStartYPos : fEndYPos; // the center the tail + const float fYHead = fStartYPos; // the center of the head + const float fYTail = fEndYPos; // the center the tail const float fColorScale = tn.HoldResult.fLife + (1-tn.HoldResult.fLife)*cache->m_fHoldLetGoGrayPercent;