Minor fixes

This commit is contained in:
rdb 2009-07-14 15:16:06 +00:00
parent 4e9902fab3
commit 82b3575664

View File

@ -216,11 +216,13 @@ thread_run() {
RELEASE_LOCK(_install_lock); RELEASE_LOCK(_install_lock);
if (have_event || install_label != prev_label) { if (override || have_event || install_label != prev_label) {
redraw(install_label); redraw(install_label);
override = false; override = false;
} XFillRectangle(_display, _window, _graphics_context, 12, _height - 18,
if (install_progress != prev_progress) { install_progress * (_width - 24), 7);
XFlush(_display);
} else if (install_progress != prev_progress) {
XFillRectangle(_display, _window, _graphics_context, 12, _height - 18, XFillRectangle(_display, _window, _graphics_context, 12, _height - 18,
install_progress * (_width - 24), 7); install_progress * (_width - 24), 7);
} }