[fusion-commits] Animation plugin: Changes to 'master' (bd79d3ba27eb601978ef66f197547df6d3a2f460)

cornelius at server.opencompositing.org cornelius at server.opencompositing.org
Sun Mar 30 06:35:08 CEST 2008


New commits:
commit bd79d3ba27eb601978ef66f197547df6d3a2f460
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Sat Mar 29 23:33:24 2008 -0500

    Fix artifacts in Rollup animation.


 animation.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)


Modified: fusion/plugins/animation/animation.c
===================================================================
--- fusion/plugins/animation/animation.c
+++ fusion/plugins/animation/animation.c
@@ -2637,16 +2637,22 @@ animAddWindowGeometry(CompWindow * w,
 		    for (it = 0; it < nMatrix; it++, v += 4)
 		    {
 			float offsetY = 0;
-			if (applyOffsets && y < y2)
-			    offsetY = objToTopLeft->offsetTexCoordForQuadAfter.y;
 
 			if (rect)
 			{
+			    if (applyOffsets && y < y2)
+				offsetY = objToTopLeft->offsetTexCoordForQuadAfter.y;
 			    v[0] = COMP_TEX_COORD_X (&matrix[it], x); // s
 			    v[1] = COMP_TEX_COORD_Y (&matrix[it], y + offsetY); // t
 			}
 			else
 			{
+			    if (applyOffsets && y < y2)
+				// FIXME:
+			    	// The correct y offset below produces wrong
+				// texture coordinates for some reason.
+				offsetY = 0;
+				// offsetY = objToTopLeft->offsetTexCoordForQuadAfter.y;
 			    v[0] = COMP_TEX_COORD_XY (&matrix[it], x, y + offsetY); // s
 			    v[1] = COMP_TEX_COORD_YX (&matrix[it], x, y + offsetY); // t
 			}


More information about the commits mailing list