Author: shadowmaster
Date: Wed Mar 21 09:29:52 2012
New Revision: 53594
URL: http://svn.gna.org/viewcvs/wesnoth?rev=53594&view=rev
Log:
gui2/teditor_settings: Explain ToD image caching caveats involving r53593 in
case anyone in the future breaks my assumptions
Modified:
trunk/src/gui/dialogs/editor_settings.cpp
Modified: trunk/src/gui/dialogs/editor_settings.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/editor_settings.cpp?rev=53594&r1=53593&r2=53594&view=diff
==============================================================================
--- trunk/src/gui/dialogs/editor_settings.cpp (original)
+++ trunk/src/gui/dialogs/editor_settings.cpp Wed Mar 21 09:29:52 2012
@@ -133,6 +133,15 @@
window.undraw();
if(display_) {
+ // NOTE: We only really want to re-render the gamemap tiles
here.
+ // Redrawing everything is a significantly more expensive task.
+ // At this time, tiles are the only elements on which ToD tint
is
+ // meant to have a visible effect. This is very strongly tied to
+ // the image caching mechanism.
+ //
+ // If this ceases to be the case in the future, you'll need to
call
+ // redraw_everything() instead.
+
// invalidate all tiles so they are redrawn with the new ToD
tint next
display_->invalidate_all();
// redraw tiles
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits