Author: mordante
Date: Mon Mar 24 08:59:28 2008
New Revision: 25050
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25050&view=rev
Log:
Wire in the resize handler again.
Modified:
trunk/src/gui/widgets/event_handler.cpp
trunk/src/gui/widgets/window.hpp
Modified: trunk/src/gui/widgets/event_handler.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/event_handler.cpp?rev=25050&r1=25049&r2=25050&view=diff
==============================================================================
--- trunk/src/gui/widgets/event_handler.cpp (original)
+++ trunk/src/gui/widgets/event_handler.cpp Mon Mar 24 08:59:28 2008
@@ -144,8 +144,7 @@
break;
case SDL_VIDEORESIZE:
- //FIXME
- std::cerr << "Resize isn't handled.\n";
+ get_window().window_resize(*this, event.resize.w,
event.resize.h);
break;
default:
Modified: trunk/src/gui/widgets/window.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/window.hpp?rev=25050&r1=25049&r2=25050&view=diff
==============================================================================
--- trunk/src/gui/widgets/window.hpp (original)
+++ trunk/src/gui/widgets/window.hpp Mon Mar 24 08:59:28 2008
@@ -74,6 +74,9 @@
tpoint client_position(const tpoint& screen_position) const
{ return tpoint(screen_position.x - get_x(), screen_position.y
- get_y()); }
+ void window_resize(tevent_handler&,
+ const unsigned new_width, const unsigned new_height);
+
protected:
private:
@@ -83,9 +86,6 @@
CVideo& video_;
tstatus status_;
-
- void window_resize(tevent_handler&,
- const unsigned new_width, const unsigned new_height);
//! When set the form needs a full layout redraw cycle.
bool need_layout_;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits