Fixed display of video coordinates.

Originally committed to SVN as r1078.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-15 22:44:52 +00:00
parent cb1f794b3e
commit e2c9befeae

View file

@ -500,6 +500,13 @@ void VideoDisplayVisual::DrawOverlay() {
glEnd(); glEnd();
glDisable(GL_COLOR_LOGIC_OP); glDisable(GL_COLOR_LOGIC_OP);
// Switch display
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0.0f,w,h,0.0f,-1000.0f,1000.0f);
glMatrixMode(GL_MODELVIEW);
// Setup text // Setup text
int tw,th; int tw,th;
OpenGLText::SetFont(_T("Verdana"),12,true); OpenGLText::SetFont(_T("Verdana"),12,true);
@ -519,6 +526,11 @@ void VideoDisplayVisual::DrawOverlay() {
// Draw text // Draw text
OpenGLText::Print(mouseText,dx,dy); OpenGLText::Print(mouseText,dx,dy);
// Restore matrix
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
} }
} }