X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fworkarea.cpp;h=6e31a6ef3566a0d5993dd4276da13a41fdfd26fc;hb=2dc2a206a800705cce91751de1ec3127c2ac2397;hp=8f7360402f789e4d6ee479a15df61440169d694c;hpb=63e709f66d50c124cc0ece2325f4773ac4ae7b20;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index 8f73604..6e31a6e 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -630,14 +630,14 @@ WorkArea::WorkArea(etl::loose_handle canvas_interfac canvas(canvas_interface->get_canvas()), scrollx_adjustment(0,-4,4,0.01,0.1), scrolly_adjustment(0,-4,4,0.01,0.1), - w(128), - h(128), + w(TILE_SIZE), + h(TILE_SIZE), last_event_time(0), progresscallback(0), dragging(DRAG_NONE), show_grid(false), - tile_w(128), - tile_h(128), + tile_w(TILE_SIZE), + tile_h(TILE_SIZE), timecode_width(0), timecode_height(0) { @@ -1976,7 +1976,7 @@ WorkArea::next_unrendered_tile(int refreshes)const x(focus_point[0]/pw+drawing_area->get_width()/2-w/2), y(focus_point[1]/ph+drawing_area->get_height()/2-h/2); - const int width_in_tiles(w/tile_w+(w%tile_w?1:0)); + const int width_in_tiles(w/tile_w+((low_resolution?((w/2)%(tile_w/2)):(w%tile_w))?1:0)); const int height_in_tiles(h/tile_h+(h%tile_h?1:0)); int