Author: Nikita Kitaev <[email protected]>
Date:   Sun Apr 10 15:04:24 2011 -0700

Fix tiling problem

---

 .../src/gui/workarearenderer/renderer_canvas.cpp   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/synfig-studio/src/gui/workarearenderer/renderer_canvas.cpp 
b/synfig-studio/src/gui/workarearenderer/renderer_canvas.cpp
index d026233..685ce48 100644
--- a/synfig-studio/src/gui/workarearenderer/renderer_canvas.cpp
+++ b/synfig-studio/src/gui/workarearenderer/renderer_canvas.cpp
@@ -143,7 +143,7 @@ Renderer_Canvas::render_vfunc(
                                Gdk::Cairo::set_source_pixbuf(
                                        cr, //cairo context
                                        tile_book[0].first, //pixbuf
-                                       x, y //coordinates to place upper left 
corner of pixbuf
+                                       round_to_int(x), round_to_int(y) 
//coordinates to place upper left corner of pixbuf
                                        );
                                cr->paint();
                                cr->restore();
@@ -196,7 +196,7 @@ Renderer_Canvas::render_vfunc(
                                                Gdk::Cairo::set_source_pixbuf(
                                                        cr, //cairo context
                                                        tile_book[index].first, 
//pixbuf
-                                                       x+tx, y+ty 
//coordinates to place upper left corner of pixbuf
+                                                       round_to_int(x)+tx, 
round_to_int(y)+ty //coordinates to place upper left corner of pixbuf
                                                        );
                                                cr->paint();
                                                cr->restore();


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to