Sometimes render artifacts only appear when rendering tile by tile. Added environmen...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 19 Nov 2007 00:05:53 +0000 (00:05 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 19 Nov 2007 00:05:53 +0000 (00:05 +0000)
git-svn-id: http://svn.voria.com/code@1157 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/workarea.cpp

index dc8b12d..8b77f93 100644 (file)
@@ -2242,8 +2242,11 @@ studio::WorkArea::async_update_preview()
        // Create the render target
        handle<Target> 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<WorkAreaTarget> trgt(new class WorkAreaTarget(this,w,h));
 
                trgt->set_rend_desc(&desc);
@@ -2252,6 +2255,7 @@ studio::WorkArea::async_update_preview()
        }
        else
        {
+               // do a scanline render
                handle<WorkAreaTarget_Full> trgt(new class WorkAreaTarget_Full(this,w,h));
 
                trgt->set_rend_desc(&desc);