fix types

This commit is contained in:
Glenn Maynard
2003-02-14 05:48:21 +00:00
parent 788d3dd2ff
commit d09c2b94b6
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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 )