comparison 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
comparison
equal deleted inserted replaced
1259:2d2b945ee0bf 1260:3cbd8de0b50b
8596 { 8596 {
8597 /* 8597 /*
8598 * Move to the first point of the polygon 8598 * Move to the first point of the polygon
8599 */ 8599 */
8600 start.x = x[0]; 8600 start.x = x[0];
8601 start.y = y[0]; 8601 start.y = thisheight - y[0] - 1;
8602 GpiMove( hps, &start ); 8602 GpiMove( hps, &start );
8603 /* 8603 /*
8604 * Convert the remainder of the x and y points 8604 * Convert the remainder of the x and y points
8605 */ 8605 */
8606 for ( i = 1; i < npoints; i++ ) 8606 for ( i = 1; i < npoints; i++ )
8607 { 8607 {
8608 pptl[i-1].x = x[i]; 8608 pptl[i-1].x = x[i];
8609 pptl[i-1].y = y[i]; 8609 pptl[i-1].y = thisheight - y[i] - 1;
8610 } 8610 }
8611 GpiPolyLine( hps, npoints-1, pptl ); 8611 GpiPolyLine( hps, npoints-1, pptl );
8612 8612
8613 if ( fill ) 8613 if ( fill )
8614 GpiEndArea( hps ); 8614 GpiEndArea( hps );