From: dooglus Date: Tue, 5 Feb 2008 16:00:20 +0000 (+0000) Subject: Fix a problem with the warp layer where some tiles weren't being rendered. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0e25115eb5b29168418d0bff55ce6d4b50b992fb;p=synfig.git Fix a problem with the warp layer where some tiles weren't being rendered. git-svn-id: http://svn.voria.com/code@1595 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/lyr_std/warp.cpp b/synfig-core/trunk/src/modules/lyr_std/warp.cpp index c41fe04..1a9a029 100644 --- a/synfig-core/trunk/src/modules/lyr_std/warp.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/warp.cpp @@ -614,16 +614,12 @@ Warp::accelerated_render(Context context,Surface *surface,int quality, const Ren Point min_point(bounding_rect.get_min()); Point max_point(bounding_rect.get_max()); - // we're going to divide by the different of these pairs soon; + // we're going to divide by the difference of these pairs soon; // if they're the same, we'll be dividing by zero, and we don't // want to do that! // \todo what should we do in this case? - if (min_point[0] == max_point[0] || min_point[1] == max_point[1]) - { - surface->set_wh(renddesc.get_w(),renddesc.get_h()); - surface->clear(); - return true; - } + if (min_point[0] == max_point[0]) max_point[0] += 0.001; + if (min_point[1] == max_point[1]) max_point[1] += 0.001; if(tl[0]>br[0]) {