aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-12-27 02:18:49 +0100
committerTorbjörn Andersson2012-12-27 02:21:24 +0100
commit61b25b970703a3c062846249676921fec2e165d6 (patch)
treee11ef517ec0e41447572a7a3b7f7626fae6f685f
parent5711d23231d2f7baf965b93e1e771c917bdc246f (diff)
downloadscummvm-rg350-61b25b970703a3c062846249676921fec2e165d6.tar.gz
scummvm-rg350-61b25b970703a3c062846249676921fec2e165d6.tar.bz2
scummvm-rg350-61b25b970703a3c062846249676921fec2e165d6.zip
GUI: Redraw the popup widget when a the selection changes
Otherwise, it will look like the value hasn't changed until the widget is redrawn for other reasons, e.g. by mouse-over. Incidentally, does anyone know why handleMouseDown() calls sendCommand() when the selection changes, while handleMouseWheel() does not?
-rw-r--r--gui/widgets/popup.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/widgets/popup.cpp b/gui/widgets/popup.cpp
index 1a552e97c0..048714ba5f 100644
--- a/gui/widgets/popup.cpp
+++ b/gui/widgets/popup.cpp
@@ -388,6 +388,7 @@ void PopUpWidget::handleMouseDown(int x, int y, int button, int clickCount) {
if (newSel != -1 && _selectedItem != newSel) {
_selectedItem = newSel;
sendCommand(kPopUpItemSelectedCmd, _entries[_selectedItem].tag);
+ draw();
}
}
}