[Scummvm-cvs-logs] SF.net SVN: scummvm:[44067] scummvm/trunk/gui

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Sep 13 22:03:04 CEST 2009


Revision: 44067
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44067&view=rev
Author:   lordhoto
Date:     2009-09-13 20:03:04 +0000 (Sun, 13 Sep 2009)

Log Message:
-----------
Commit salty-horse's fix for bug #2854261 "GUI: Launcher list doesn't highlight after getting focus".

Modified Paths:
--------------
    scummvm/trunk/gui/ListWidget.cpp
    scummvm/trunk/gui/ListWidget.h

Modified: scummvm/trunk/gui/ListWidget.cpp
===================================================================
--- scummvm/trunk/gui/ListWidget.cpp	2009-09-13 19:57:23 UTC (rev 44066)
+++ scummvm/trunk/gui/ListWidget.cpp	2009-09-13 20:03:04 UTC (rev 44067)
@@ -404,8 +404,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/trunk/gui/ListWidget.h
===================================================================
--- scummvm/trunk/gui/ListWidget.h	2009-09-13 19:57:23 UTC (rev 44066)
+++ scummvm/trunk/gui/ListWidget.h	2009-09-13 20:03:04 UTC (rev 44067)
@@ -145,6 +145,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