[Scummvm-cvs-logs] scummvm master -> 61b25b970703a3c062846249676921fec2e165d6
eriktorbjorn
eriktorbjorn at telia.com
Thu Dec 27 02:23:47 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
61b25b9707 GUI: Redraw the popup widget when a the selection changes
Commit: 61b25b970703a3c062846249676921fec2e165d6
https://github.com/scummvm/scummvm/commit/61b25b970703a3c062846249676921fec2e165d6
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2012-12-26T17:21:24-08:00
Commit Message:
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?
Changed paths:
gui/widgets/popup.cpp
diff --git a/gui/widgets/popup.cpp b/gui/widgets/popup.cpp
index 1a552e9..048714b 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();
}
}
}
More information about the Scummvm-git-logs
mailing list