From: dooglus Date: Thu, 17 Jan 2008 15:59:01 +0000 (+0000) Subject: Improve the readability of the message about 'render broken up' for large command... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=df971b134dfc3c0820a758d72c5b0d511f001a24;p=synfig.git Improve the readability of the message about 'render broken up' for large command-line renders. git-svn-id: http://svn.voria.com/code@1390 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/target_scanline.cpp b/synfig-core/trunk/src/synfig/target_scanline.cpp index d4ba4ae..8176e8b 100644 --- a/synfig-core/trunk/src/synfig/target_scanline.cpp +++ b/synfig-core/trunk/src/synfig/target_scanline.cpp @@ -199,8 +199,6 @@ synfig::Target_Scanline::render(ProgressCallback *cb) #if USE_PIXELRENDERING_LIMIT if(desc.get_w()*desc.get_h() > PIXEL_RENDERING_LIMIT) { - synfig::info("Render BROKEN UP! (%d pixels)", desc.get_w()*desc.get_h()); - Surface surface; int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w(); if (!rowheight) rowheight = 1; // TODO: render partial lines to stay within the limit? @@ -209,7 +207,8 @@ synfig::Target_Scanline::render(ProgressCallback *cb) rows++; - synfig::info("\t blockh=%d,remh=%d,totrows=%d", rowheight,lastrowheight,rows); + synfig::info("Render broken up into %d block%s %d pixels tall, and a final block %d pixels tall", + rows-1, rows==2?"":"s", rowheight, lastrowheight); // loop through all the full rows if(!start_frame()) @@ -334,8 +333,6 @@ synfig::Target_Scanline::render(ProgressCallback *cb) #if USE_PIXELRENDERING_LIMIT if(desc.get_w()*desc.get_h() > PIXEL_RENDERING_LIMIT) { - synfig::info("Render BROKEN UP! (%d pixels)", desc.get_w()*desc.get_h()); - Surface surface; int totalheight = desc.get_h(); int rowheight = PIXEL_RENDERING_LIMIT/desc.get_w(); @@ -345,7 +342,8 @@ synfig::Target_Scanline::render(ProgressCallback *cb) rows++; - synfig::info("\t blockh=%d,remh=%d,totrows=%d", rowheight,lastrowheight,rows); + synfig::info("Render broken up into %d block%s %d pixels tall, and a final block %d pixels tall", + rows-1, rows==2?"":"s", rowheight, lastrowheight); // loop through all the full rows if(!start_frame())