From c342fa4c3480daedd9580082c07cb6ad2b35a6ef Mon Sep 17 00:00:00 2001
From: scuri <scuri>
Date: Fri, 28 May 2010 00:12:50 +0000
Subject: *** empty log message ***

---
 src/gdiplus/cdwinp.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/gdiplus')

diff --git a/src/gdiplus/cdwinp.cpp b/src/gdiplus/cdwinp.cpp
index 5fbe2db..a2eec55 100644
--- a/src/gdiplus/cdwinp.cpp
+++ b/src/gdiplus/cdwinp.cpp
@@ -526,6 +526,7 @@ static void cdpattern(cdCtxCanvas* ctxcanvas, int w, int h, const long int *colo
   {
     int line_offset_colors;
     int line_offset = j*stride;
+    /* internal transform, affects also pattern orientation */
     if (ctxcanvas->canvas->invert_yaxis)
       line_offset_colors = ((h - 1) - j)*w;  // Fix up side down
     else
@@ -629,9 +630,11 @@ static void cdwpFixAngles(cdCtxCanvas* ctxcanvas, double *angle1, double *angle2
 {
   if (ctxcanvas->canvas->invert_yaxis)
   {
-    // GDI+ angles are clock-wise by default
+    // GDI+ angles are clock-wise by default, in degrees
     *angle1 *= -1;
     *angle2 *= -1;
+
+    // no need to swap, because we will use (angle2-angle1)
   }
 }
 
-- 
cgit v1.2.3