Author: alink
Date: Tue Nov 6 00:34:54 2007
New Revision: 21522
URL: http://svn.gna.org/viewcvs/wesnoth?rev=21522&view=rev
Log:
directly abort more draw operations when map is empty
Modified:
trunk/src/display.cpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=21522&r1=21521&r2=21522&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Tue Nov 6 00:34:54 2007
@@ -937,6 +937,10 @@
{
bool changed = false;
+ if (map_.empty()) {
+ return changed;
+ }
+
if(benchmark) {
redraw_background_ = true;
invalidateAll_ = true;
@@ -962,7 +966,7 @@
invalidateAll_ = true;
}
- if(invalidateAll_ && !map_.empty()) {
+ if(invalidateAll_) {
INFO_DP << "draw() with invalidateAll\n";
gamemap::location topleft;
gamemap::location bottomright;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits