Author: mordante
Date: Tue Jun 17 21:03:26 2008
New Revision: 27266
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27266&view=rev
Log:
Remove dst_clip_ as member since not required to be stored.
Modified:
trunk/src/gui/widgets/canvas.cpp
Modified: trunk/src/gui/widgets/canvas.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/canvas.cpp?rev=27266&r1=27265&r2=27266&view=diff
==============================================================================
--- trunk/src/gui/widgets/canvas.cpp (original)
+++ trunk/src/gui/widgets/canvas.cpp Tue Jun 17 21:03:26 2008
@@ -440,7 +440,6 @@
h_;
SDL_Rect src_clip_;
- SDL_Rect dst_clip_;
surface image_;
/**
@@ -461,7 +460,6 @@
w_(cfg["w"]),
h_(cfg["h"]),
src_clip_(),
- dst_clip_(),
image_(),
image_name_(cfg["name"]),
stretch_(utils::string_bool(cfg["stretch"]))
@@ -553,9 +551,7 @@
// Copy the data to local variables to avoid overwriting the originals.
SDL_Rect src_clip = src_clip_;
- SDL_Rect dst_clip = dst_clip_;
- dst_clip.x = x;
- dst_clip.y = y;
+ SDL_Rect dst_clip = {x, y, 0, 0};
surface surf;
// Test whether we need to scale and do the scaling if needed.
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits