wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/widgets file_chooser.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src/widgets file_chooser.cpp
Date: Thu, 18 Nov 2004 16:00:23 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/11/18 20:41:35

Modified files:
        src/widgets    : file_chooser.cpp 

Log message:
        A last bit of cleanup before I stop working on it.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/file_chooser.cpp.diff?tr1=1.18&tr2=1.19&r1=text&r2=text

Patches:
Index: wesnoth/src/widgets/file_chooser.cpp
diff -u wesnoth/src/widgets/file_chooser.cpp:1.18 
wesnoth/src/widgets/file_chooser.cpp:1.19
--- wesnoth/src/widgets/file_chooser.cpp:1.18   Thu Nov 18 20:35:21 2004
+++ wesnoth/src/widgets/file_chooser.cpp        Thu Nov 18 20:41:33 2004
@@ -96,9 +96,9 @@
        // The menu does not implement focus functionality, so we fake
        // it. We give the file list focus whenever the filename textbox
        // does not have focus. Inflexible but easy solution.
-       if (!(mousex > location().x && (unsigned)mousex < location().x + width()
-               && mousey > location().y 
-               && (unsigned)mousey < location().y + height() - 
filename_textbox_.height())) {
+       SDL_Rect const &loc = location();
+       if (!(mousex > loc.x && (unsigned)mousex < loc.x + loc.w && mousey > 
loc.y 
+               && (unsigned)mousey < loc.y + loc.h - 
filename_textbox_.height())) {
                // Hmm, as I understand it this should happen automatically when
                // the mouse is in the textbox again. However this is not the
                // case so this is done explicitly here.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]