diff os2/dw.c @ 1260:3cbd8de0b50b

Fixed dw_draw_polygon on OS/2 not flipping the Y coordinates.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 25 Oct 2011 06:21:59 +0000
parents db26b9622769
children 61d0c5f84644
line wrap: on
line diff
--- a/os2/dw.c	Tue Oct 25 06:13:36 2011 +0000
+++ b/os2/dw.c	Tue Oct 25 06:21:59 2011 +0000
@@ -8598,7 +8598,7 @@
        * Move to the first point of the polygon
        */
       start.x = x[0];
-      start.y = y[0];
+      start.y = thisheight - y[0] - 1;
       GpiMove( hps, &start );
       /*
        * Convert the remainder of the x and y points
@@ -8606,7 +8606,7 @@
       for ( i = 1; i < npoints; i++ )
       {
          pptl[i-1].x = x[i];
-         pptl[i-1].y = y[i];
+         pptl[i-1].y = thisheight - y[i] - 1;
       }
       GpiPolyLine( hps, npoints-1, pptl );