From 82b3575664601426b9d2fe9c76052cebffe1016d Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 14 Jul 2009 15:16:06 +0000 Subject: [PATCH] Minor fixes --- direct/src/plugin/p3dX11SplashWindow.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/direct/src/plugin/p3dX11SplashWindow.cxx b/direct/src/plugin/p3dX11SplashWindow.cxx index b3cf5beeb6..2a3d17ec0d 100755 --- a/direct/src/plugin/p3dX11SplashWindow.cxx +++ b/direct/src/plugin/p3dX11SplashWindow.cxx @@ -216,11 +216,13 @@ thread_run() { RELEASE_LOCK(_install_lock); - if (have_event || install_label != prev_label) { + if (override || have_event || install_label != prev_label) { redraw(install_label); override = false; - } - if (install_progress != prev_progress) { + XFillRectangle(_display, _window, _graphics_context, 12, _height - 18, + install_progress * (_width - 24), 7); + XFlush(_display); + } else if (install_progress != prev_progress) { XFillRectangle(_display, _window, _graphics_context, 12, _height - 18, install_progress * (_width - 24), 7); }