forked from mia/Aegisub
Fixed display of video coordinates.
Originally committed to SVN as r1078.
This commit is contained in:
parent
cb1f794b3e
commit
e2c9befeae
1 changed files with 12 additions and 0 deletions
|
@ -500,6 +500,13 @@ void VideoDisplayVisual::DrawOverlay() {
|
|||
glEnd();
|
||||
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
|
||||
int tw,th;
|
||||
OpenGLText::SetFont(_T("Verdana"),12,true);
|
||||
|
@ -519,6 +526,11 @@ void VideoDisplayVisual::DrawOverlay() {
|
|||
|
||||
// Draw text
|
||||
OpenGLText::Print(mouseText,dx,dy);
|
||||
|
||||
// Restore matrix
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glPopMatrix();
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue