cosmetic to bring these wavy parts closer together
This commit is contained in:
@@ -388,18 +388,18 @@ void NoteDisplay::DrawHoldTopCap( const TapNote& tn, int iCol, float fBeat, bool
|
|||||||
vpSpr.push_back( pSpr );
|
vpSpr.push_back( pSpr );
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw manually in small segments
|
|
||||||
const RectF *pRect = pSprite->GetCurrentTextureCoordRect();
|
|
||||||
DISPLAY->ClearAllTextures();
|
DISPLAY->ClearAllTextures();
|
||||||
DISPLAY->SetCullMode( CULL_NONE );
|
DISPLAY->SetCullMode( CULL_NONE );
|
||||||
DISPLAY->SetTextureWrapping(false);
|
DISPLAY->SetTextureWrapping(false);
|
||||||
|
|
||||||
|
// draw manually in small segments
|
||||||
|
const RectF *pRect = pSprite->GetCurrentTextureCoordRect();
|
||||||
const float fFrameWidth = pSprite->GetZoomedWidth();
|
const float fFrameWidth = pSprite->GetZoomedWidth();
|
||||||
const float fFrameHeight = pSprite->GetZoomedHeight();
|
const float fFrameHeight = pSprite->GetZoomedHeight();
|
||||||
const float fYCapTop = fYHead+cache->m_iStartDrawingHoldBodyOffsetFromHead-fFrameHeight;
|
const float fYCapTop = fYHead+cache->m_iStartDrawingHoldBodyOffsetFromHead-fFrameHeight;
|
||||||
const float fYCapBottom = fYHead+cache->m_iStartDrawingHoldBodyOffsetFromHead;
|
const float fYCapBottom = fYHead+cache->m_iStartDrawingHoldBodyOffsetFromHead;
|
||||||
|
|
||||||
bool bReverse = m_pPlayerState->m_PlayerOptions.GetCurrent().GetReversePercentForColumn(iCol) > 0.5f;
|
const bool bReverse = m_pPlayerState->m_PlayerOptions.GetCurrent().GetReversePercentForColumn(iCol) > 0.5f;
|
||||||
|
|
||||||
if( bGlow )
|
if( bGlow )
|
||||||
fColorScale = 1;
|
fColorScale = 1;
|
||||||
@@ -420,7 +420,7 @@ void NoteDisplay::DrawHoldTopCap( const TapNote& tn, int iCol, float fBeat, bool
|
|||||||
bool bLast = false;
|
bool bLast = false;
|
||||||
|
|
||||||
float fY = fDrawYCapTop;
|
float fY = fDrawYCapTop;
|
||||||
for( ; !bLast; fY+=fYStep )
|
for( ; !bLast; fY += fYStep )
|
||||||
{
|
{
|
||||||
if( fY >= fDrawYCapBottom )
|
if( fY >= fDrawYCapBottom )
|
||||||
{
|
{
|
||||||
@@ -489,8 +489,9 @@ void NoteDisplay::DrawHoldBody( const TapNote& tn, int iCol, float fBeat, bool b
|
|||||||
vpSpr.push_back( pSpr );
|
vpSpr.push_back( pSpr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DISPLAY->ClearAllTextures();
|
DISPLAY->ClearAllTextures();
|
||||||
|
DISPLAY->SetCullMode( CULL_NONE );
|
||||||
|
DISPLAY->SetTextureWrapping( true );
|
||||||
|
|
||||||
// draw manually in small segments
|
// draw manually in small segments
|
||||||
const RectF *pRect = pSprite->GetCurrentTextureCoordRect();
|
const RectF *pRect = pSprite->GetCurrentTextureCoordRect();
|
||||||
@@ -566,8 +567,6 @@ void NoteDisplay::DrawHoldBody( const TapNote& tn, int iCol, float fBeat, bool b
|
|||||||
RageTexture* pTexture = (*spr)->GetTexture();
|
RageTexture* pTexture = (*spr)->GetTexture();
|
||||||
DISPLAY->SetTexture( TextureUnit_1, pTexture->GetTexHandle() );
|
DISPLAY->SetTexture( TextureUnit_1, pTexture->GetTexHandle() );
|
||||||
DISPLAY->SetBlendMode( spr == vpSpr.begin() ? BLEND_NORMAL : BLEND_ADD );
|
DISPLAY->SetBlendMode( spr == vpSpr.begin() ? BLEND_NORMAL : BLEND_ADD );
|
||||||
DISPLAY->SetCullMode( CULL_NONE );
|
|
||||||
DISPLAY->SetTextureWrapping( true );
|
|
||||||
queue.Draw();
|
queue.Draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -599,18 +598,18 @@ void NoteDisplay::DrawHoldBottomCap( const TapNote& tn, int iCol, float fBeat, b
|
|||||||
vpSpr.push_back( pSpr );
|
vpSpr.push_back( pSpr );
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw manually in small segments
|
|
||||||
const RectF *pRect = pSprite->GetCurrentTextureCoordRect();
|
|
||||||
DISPLAY->ClearAllTextures();
|
DISPLAY->ClearAllTextures();
|
||||||
DISPLAY->SetCullMode( CULL_NONE );
|
DISPLAY->SetCullMode( CULL_NONE );
|
||||||
DISPLAY->SetTextureWrapping(false);
|
DISPLAY->SetTextureWrapping(false);
|
||||||
|
|
||||||
|
// draw manually in small segments
|
||||||
|
const RectF *pRect = pSprite->GetCurrentTextureCoordRect();
|
||||||
const float fFrameWidth = pSprite->GetZoomedWidth();
|
const float fFrameWidth = pSprite->GetZoomedWidth();
|
||||||
const float fFrameHeight = pSprite->GetZoomedHeight();
|
const float fFrameHeight = pSprite->GetZoomedHeight();
|
||||||
const float fYCapTop = fYTail+cache->m_iStopDrawingHoldBodyOffsetFromTail;
|
const float fYCapTop = fYTail+cache->m_iStopDrawingHoldBodyOffsetFromTail;
|
||||||
const float fYCapBottom = fYTail+cache->m_iStopDrawingHoldBodyOffsetFromTail+fFrameHeight;
|
const float fYCapBottom = fYTail+cache->m_iStopDrawingHoldBodyOffsetFromTail+fFrameHeight;
|
||||||
|
|
||||||
bool bReverse = m_pPlayerState->m_PlayerOptions.GetCurrent().GetReversePercentForColumn(iCol) > 0.5f;
|
const bool bReverse = m_pPlayerState->m_PlayerOptions.GetCurrent().GetReversePercentForColumn(iCol) > 0.5f;
|
||||||
|
|
||||||
if( bGlow )
|
if( bGlow )
|
||||||
fColorScale = 1;
|
fColorScale = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user