Fixed minor glitch on visual typesetting

Originally committed to SVN as r1312.
This commit is contained in:
Rodrigo Braz Monteiro 2007-06-28 22:27:33 +00:00
parent 36df5b3de2
commit ec9f32b670
1 changed files with 7 additions and 2 deletions

View File

@ -85,6 +85,9 @@ void VideoDisplayVisual::SetMode(int _mode) {
// Display cursor or not
parent->ShowCursor(mode != 0);
// Refresh parent
parent->Render();
}
@ -278,8 +281,10 @@ void VideoDisplayVisual::DrawOverlay() {
glPopMatrix();
// Draw line to mouse
SetLineColour(colour[0]);
DrawLine(dx,dy,mx,my);
if (x != -1) {
SetLineColour(colour[0]);
DrawLine(dx,dy,mx,my);
}
}
// Rotate XY