[Scummvm-cvs-logs] SF.net SVN: scummvm:[44068] scummvm/branches/branch-1-0-0/gui
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Sep 13 22:04:08 CEST 2009
Revision: 44068
http://scummvm.svn.sourceforge.net/scummvm/?rev=44068&view=rev
Author: lordhoto
Date: 2009-09-13 20:04:05 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
Backport of r44067: "Fix for bug #2854261".
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/gui/ListWidget.cpp
scummvm/branches/branch-1-0-0/gui/ListWidget.h
Modified: scummvm/branches/branch-1-0-0/gui/ListWidget.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/gui/ListWidget.cpp 2009-09-13 20:03:04 UTC (rev 44067)
+++ scummvm/branches/branch-1-0-0/gui/ListWidget.cpp 2009-09-13 20:04:05 UTC (rev 44068)
@@ -373,8 +373,13 @@
return true;
}
+void ListWidget::receivedFocusWidget() {
+ // Redraw the widget so the selection color will change
+ draw();
+}
+
void ListWidget::lostFocusWidget() {
- // If we loose focus, we simply forget the user changes
+ // If we lose focus, we simply forget the user changes
_editMode = false;
g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
drawCaret(true);
Modified: scummvm/branches/branch-1-0-0/gui/ListWidget.h
===================================================================
--- scummvm/branches/branch-1-0-0/gui/ListWidget.h 2009-09-13 20:03:04 UTC (rev 44067)
+++ scummvm/branches/branch-1-0-0/gui/ListWidget.h 2009-09-13 20:04:05 UTC (rev 44068)
@@ -130,6 +130,7 @@
Common::Rect getEditRect() const;
+ void receivedFocusWidget();
void lostFocusWidget();
void scrollToCurrent();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list