Author: esr
Date: Sun Oct 12 06:12:02 2008
New Revision: 30071
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30071&view=rev
Log:
trackplacer: map now renders in correct colors.
Modified:
trunk/data/tools/trackplacer
Modified: trunk/data/tools/trackplacer
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=30071&r1=30070&r2=30071&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Sun Oct 12 06:12:02 2008
@@ -194,19 +194,21 @@
xs = self.map_width - x
if ys == -1:
ys = self.map_height - y
- self.map.copy_area(x, y, xs, ys, self.pixmap, x, y)
+ self.pixmap.draw_drawable(self.default_gc, self.map, x, y, x, y, xs,
ys)
+
# Create a new backing pixmap of the appropriate size
def configure_event(self, widget, event):
x, y, width, height = widget.get_allocation()
self.pixmap = gtk.gdk.Pixmap(widget.window, width, height)
+ self.default_gc = self.drawing_area.get_style().fg_gc[gtk.STATE_NORMAL]
self.refresh_map()
return True
# Redraw the screen from the backing pixmap
def expose_event(self, widget, event):
x , y, width, height = event.area
- widget.window.draw_drawable(widget.get_style().fg_gc[gtk.STATE_NORMAL],
+ widget.window.draw_drawable(self.default_gc,
self.pixmap, x, y, x, y, width, height)
return False
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits