Applied patch from IL'dar AKHmetgaleev aka AkhIL to allow different qualities of...
[synfig.git] / synfig-studio / trunk / src / gtkmm / renderer_canvas.cpp
index 9115bff..1a137fb 100644 (file)
@@ -152,7 +152,9 @@ Renderer_Canvas::render_vfunc(
                }
                else
                {
-                       const int width_in_tiles(w/tile_w+(((get_work_area()->get_low_resolution_flag())?((w/2)%(tile_w/2)):(w%tile_w))?1:0));
+
+                       int div = 1 << get_work_area()->get_lowrespixel();
+                       const int width_in_tiles(w/tile_w+(((get_work_area()->get_low_resolution_flag())?((w/div)%(tile_w/div)):(w%tile_w))?1:0));
                        const int height_in_tiles(h/tile_h+(h%tile_h?1:0));
 
                        int u(0),v(0),tx,ty;