The default OpenGL ortho matrix looks down the negative Z axis, not

the positive one.

I could have fixed this by reversing them at the glOrtho call, but I figured
it'd be cleaner to just switch these.  It also makes it match the 3d projection.
This commit is contained in:
Glenn Maynard
2002-11-15 21:27:13 +00:00
parent 265b3926d6
commit d2ef9a8441
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ void CourseContentsFrame::DrawPrimitives()
DISPLAY->EnableZBuffer();
// write to z buffer so that top and bottom are clipped
m_quad.SetZ( -1 );
m_quad.SetZ( 1 );
RectI rectBarSize(-(int)CONTENTS_BAR_WIDTH/2, -(int)CONTENTS_BAR_HEIGHT/2, (int)CONTENTS_BAR_WIDTH/2, (int)CONTENTS_BAR_HEIGHT/2);
m_quad.StretchTo( rectBarSize );
+1 -1
View File
@@ -54,7 +54,7 @@ public:
bool bExtra = GAMESTATE->IsExtraStage()||GAMESTATE->IsExtraStage2();
m_quadMask.SetDiffuse( RageColor(0,0,0,0) );
m_quadMask.SetZ( -1 );
m_quadMask.SetZ( 1 );
CString sGraphicPath;
+1 -1
View File
@@ -435,7 +435,7 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary )
// Ez2dancer should control the grade tween using theme metrics
m_Grades[p].SetXY( GRADE_X(p), GRADE_Y );
m_Grades[p].SetZ( -2 );
m_Grades[p].SetZ( 2 );
m_Grades[p].SetZoom( 1.0f );
m_Grades[p].SetEffectGlowing( 5.0f, GRADES_GLOW_COLOR_1, GRADES_GLOW_COLOR_2 );
if( SPIN_GRADES )
+1 -1
View File
@@ -129,7 +129,7 @@ ScreenEz2SelectMusic::ScreenEz2SelectMusic()
m_textHoldForOptions.SetZoom( 1 );
m_textHoldForOptions.SetZoomY( 0 );
m_textHoldForOptions.SetDiffuse( RageColor(1,1,1,0) );
m_textHoldForOptions.SetZ( -2 );
m_textHoldForOptions.SetZ( 2 );
this->AddChild( &m_textHoldForOptions );
+2 -2
View File
@@ -151,7 +151,7 @@ ScreenSelectStyle5th::ScreenSelectStyle5th()
m_textExplanation1.LoadFromFont( THEME->GetPathTo("Fonts","header1") );
m_textExplanation1.SetDiffuse( RageColor(0,0.7f,0,1) );
m_textExplanation1.SetXY( EXPLANATION1_X, EXPLANATION1_Y );
m_textExplanation1.SetZ( -1 );
m_textExplanation1.SetZ( 1 );
m_textExplanation1.SetZoomX( EXPLANATION1_ZOOM_X );
m_textExplanation1.SetZoomY( EXPLANATION1_ZOOM_Y );
m_textExplanation1.SetHorizAlign( BitmapText::align_left );
@@ -160,7 +160,7 @@ ScreenSelectStyle5th::ScreenSelectStyle5th()
m_textExplanation2.LoadFromFont( THEME->GetPathTo("Fonts","header1") );
m_textExplanation2.SetDiffuse( RageColor(0,0.7f,0,1) );
m_textExplanation2.SetXY( EXPLANATION2_X, EXPLANATION2_Y );
m_textExplanation2.SetZ( -1 );
m_textExplanation2.SetZ( 1 );
m_textExplanation2.SetZoomX( EXPLANATION2_ZOOM_X );
m_textExplanation2.SetZoomY( EXPLANATION2_ZOOM_Y );
m_textExplanation2.SetHorizAlign( BitmapText::align_left );