[Igarden-commit] CommonSource/YAAFExtensions RGGLSVGDraw.cpp, 1.26.2.4, 1.26.2.5
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-11-11 15:05:16
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26242 Modified Files: Tag: Release_branch_v1 RGGLSVGDraw.cpp Log Message: Get transforms and tessellated area fills working. Index: RGGLSVGDraw.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGGLSVGDraw.cpp,v retrieving revision 1.26.2.4 retrieving revision 1.26.2.5 diff -C2 -d -r1.26.2.4 -r1.26.2.5 *** RGGLSVGDraw.cpp 5 Nov 2006 03:42:08 -0000 1.26.2.4 --- RGGLSVGDraw.cpp 11 Nov 2006 15:05:14 -0000 1.26.2.5 *************** *** 49,52 **** --- 49,56 ---- typedef struct { + bool doTranslate; + bool doScale; + bool doRotate; + //*** double translateX; double translateY; *************** [...1489 lines suppressed...] ! resultX = x; ! resultY = y; #endif + } + else + { + tx = xfm.translateX; + if(xfm.scaleX >= 0) + resultX = x + tx; + else + resultX = tx - x; + + ty = xfm.translateY; + if(xfm.scaleY >= 0) + resultY = y + ty; + else + resultY = ty - y; + } + } + |