Author: ilor
Date: Thu Sep 18 21:52:26 2008
New Revision: 29539
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29539&view=rev
Log:
slight performance improvement for the editor2 settings dialog lighting change
flicker
Modified:
trunk/src/editor2/editor_controller.cpp
Modified: trunk/src/editor2/editor_controller.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=29539&r1=29538&r2=29539&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Thu Sep 18 21:52:26 2008
@@ -264,8 +264,9 @@
void editor_controller::editor_settings_dialog_redraw_callback(int r, int g,
int b)
{
+ SCOPE_ED;
image::set_colour_adjustment(r, g, b);
- refresh_all();
+ gui().redraw_everything();
}
bool editor_controller::confirm_discard()
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits