fix types
This commit is contained in:
@@ -34,8 +34,8 @@ void TransitionBackWipe::DrawPrimitives()
|
|||||||
/////////////////////////
|
/////////////////////////
|
||||||
// draw rectangles that get progressively smaller at the edge of the wipe
|
// draw rectangles that get progressively smaller at the edge of the wipe
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
BOOL bLeftEdgeIsDarker = m_TransitionState == opening_left || m_TransitionState == closing_right;
|
bool bLeftEdgeIsDarker = m_TransitionState == opening_left || m_TransitionState == closing_right;
|
||||||
BOOL bFadeIsMovingLeft = m_TransitionState == opening_left || m_TransitionState == closing_left;
|
bool bFadeIsMovingLeft = m_TransitionState == opening_left || m_TransitionState == closing_left;
|
||||||
|
|
||||||
double fPercentComplete = m_fPercentThroughTransition;
|
double fPercentComplete = m_fPercentThroughTransition;
|
||||||
double fPercentAlongScreen = bFadeIsMovingLeft ? 1-fPercentComplete : fPercentComplete;
|
double fPercentAlongScreen = bFadeIsMovingLeft ? 1-fPercentComplete : fPercentComplete;
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ void TransitionRectWipe::DrawPrimitives()
|
|||||||
/////////////////////////
|
/////////////////////////
|
||||||
// draw rectangles that get progressively smaller at the edge of the wipe
|
// draw rectangles that get progressively smaller at the edge of the wipe
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
BOOL bLeftEdgeIsDarker = m_TransitionState == opening_left || m_TransitionState == closing_right;
|
bool bLeftEdgeIsDarker = m_TransitionState == opening_left || m_TransitionState == closing_right;
|
||||||
BOOL bFadeIsMovingLeft = m_TransitionState == opening_left || m_TransitionState == closing_left;
|
bool bFadeIsMovingLeft = m_TransitionState == opening_left || m_TransitionState == closing_left;
|
||||||
|
|
||||||
double fPercentComplete = m_fPercentThroughTransition;
|
double fPercentComplete = m_fPercentThroughTransition;
|
||||||
double fPercentAlongScreen = bFadeIsMovingLeft ? 1-fPercentComplete : fPercentComplete;
|
double fPercentAlongScreen = bFadeIsMovingLeft ? 1-fPercentComplete : fPercentComplete;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ void TransitionStarWipe::DrawPrimitives()
|
|||||||
|
|
||||||
for( int row=0; row<iNumStars; row++ ) // foreach row of stars
|
for( int row=0; row<iNumStars; row++ ) // foreach row of stars
|
||||||
{
|
{
|
||||||
BOOL bIsAnEvenRow = row % 2;
|
bool bIsAnEvenRow = !!(row % 2);
|
||||||
int y = m_iStarHeight*row + m_iStarHeight/2;
|
int y = m_iStarHeight*row + m_iStarHeight/2;
|
||||||
int x_tilt;
|
int x_tilt;
|
||||||
switch( m_TransitionState )
|
switch( m_TransitionState )
|
||||||
|
|||||||
Reference in New Issue
Block a user