If the rows are wider than our PIXEL_RENDERING_LIMIT, then still render a row. Previ...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 31 Mar 2007 00:19:39 +0000 (00:19 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 31 Mar 2007 00:19:39 +0000 (00:19 +0000)
git-svn-id: http://svn.voria.com/code@396 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/target_scanline.cpp

index 0272442..19f38f2 100644 (file)
@@ -203,6 +203,7 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
 
                                Surface surface;
                                int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w();
+                               if (!rowheight) rowheight = 1; // TODO: render partial lines to stay within the limit?
                                int rows = desc.get_h()/rowheight;
                                int lastrowheight = desc.get_h() - rows*rowheight;
 
@@ -338,6 +339,7 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
                                Surface surface;
                                int totalheight = desc.get_h();
                                int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w();
+                               if (!rowheight) rowheight = 1; // TODO: render partial lines to stay within the limit?
                                int rows = desc.get_h()/rowheight;
                                int lastrowheight = desc.get_h() - rows*rowheight;