From ec9f32b670d9794e6b8e06157357f10d459f2991 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Thu, 28 Jun 2007 22:27:33 +0000 Subject: [PATCH] Fixed minor glitch on visual typesetting Originally committed to SVN as r1312. --- aegisub/video_display_visual.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/aegisub/video_display_visual.cpp b/aegisub/video_display_visual.cpp index 656b5900f..184245c66 100644 --- a/aegisub/video_display_visual.cpp +++ b/aegisub/video_display_visual.cpp @@ -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