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

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

[Wesnoth-cvs-commits] wesnoth/src multiplayer_client.cpp multiplayer_...


From: Philippe Plantier
Subject: [Wesnoth-cvs-commits] wesnoth/src multiplayer_client.cpp multiplayer_...
Date: Thu, 04 Nov 2004 17:28:49 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <address@hidden>      04/11/04 22:22:55

Modified files:
        src            : multiplayer_client.cpp multiplayer_client.hpp 

Log message:
        Fixed a the "select leader" pane not refreshing.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_client.cpp.diff?tr1=1.74&tr2=1.75&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_client.hpp.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: wesnoth/src/multiplayer_client.cpp
diff -u wesnoth/src/multiplayer_client.cpp:1.74 
wesnoth/src/multiplayer_client.cpp:1.75
--- wesnoth/src/multiplayer_client.cpp:1.74     Wed Nov  3 21:46:58 2004
+++ wesnoth/src/multiplayer_client.cpp  Thu Nov  4 22:22:55 2004
@@ -800,3 +800,14 @@
        return leaders_.get_leader();
 }
 
+void leader_preview_pane::set_location(const SDL_Rect& rect)
+{
+       if (location().x == rect.x && location().y == rect.y && 
+                       location().w == rect.w && location().h == rect.h)
+               return;
+
+       widget::set_location(rect);
+       register_rectangle(rect);
+}
+
+
Index: wesnoth/src/multiplayer_client.hpp
diff -u wesnoth/src/multiplayer_client.hpp:1.5 
wesnoth/src/multiplayer_client.hpp:1.6
--- wesnoth/src/multiplayer_client.hpp:1.5      Wed Nov  3 21:46:58 2004
+++ wesnoth/src/multiplayer_client.hpp  Thu Nov  4 22:22:55 2004
@@ -46,6 +46,9 @@
        void set_selection(int index);
        std::string get_selected_leader();
 
+       virtual void set_location(const SDL_Rect& rect);
+       using widget::set_location;
+
 private:
        void draw_contents();
        void process();




reply via email to

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