summaryrefslogtreecommitdiff
path: root/src/gdiplus/cdwinp.cpp
diff options
context:
space:
mode:
authorscuri <scuri>2010-05-28 00:12:50 +0000
committerscuri <scuri>2010-05-28 00:12:50 +0000
commitc342fa4c3480daedd9580082c07cb6ad2b35a6ef (patch)
treed2f50cf8ceabcbe4e898126cf8fb9e5f5b94e555 /src/gdiplus/cdwinp.cpp
parentb13afc2e6f0811cc14532c4f1060bc73b6053df4 (diff)
*** empty log message ***
Diffstat (limited to 'src/gdiplus/cdwinp.cpp')
-rw-r--r--src/gdiplus/cdwinp.cpp5
1 files changed, 4 insertions, 1 deletions
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)
}
}