X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fworkarea.cpp;h=d65d3d0fef4faeac4dc688a579597363da18a647;hb=c2813b4d63804cac9b4067146a9e6eca717cb3e4;hp=3a9cd0396fc530553d37ab187269e0cf4755abdc;hpb=d4d94c626d5cf4766cf32781cd8088de3b5683f8;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index 3a9cd03..d65d3d0 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -72,6 +72,8 @@ #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -2240,8 +2242,11 @@ studio::WorkArea::async_update_preview() // Create the render target handle target; - if(w*h>(low_resolution?480*270:480*270/2)) + // if we have lots of pixels to render and the tile renderer isn't disabled, use it + if(w*h>(low_resolution?480*270:480*270/2) && + !getenv("SYNFIG_DISABLE_TILE_RENDER")) { + // do a tile render handle trgt(new class WorkAreaTarget(this,w,h)); trgt->set_rend_desc(&desc); @@ -2250,6 +2255,7 @@ studio::WorkArea::async_update_preview() } else { + // do a scanline render handle trgt(new class WorkAreaTarget_Full(this,w,h)); trgt->set_rend_desc(&desc); @@ -2416,7 +2422,7 @@ again: } void -studio::WorkArea::async_render_preview(Time time) +studio::WorkArea::async_render_preview(synfig::Time time) { cur_time=time; //tile_book.clear(); @@ -2437,7 +2443,7 @@ WorkArea::async_render_preview() } bool -studio::WorkArea::sync_render_preview(Time time) +studio::WorkArea::sync_render_preview(synfig::Time time) { cur_time=time; //tile_book.clear();