Author: manolo
Date: 2012-05-09 04:45:08 -0700 (Wed, 09 May 2012)
New Revision: 9469
Log:
Fixed Fl_PostScript_Graphics_Driver::pie().
Modified:
branches/branch-1.3/src/Fl_PostScript.cxx
Modified: branches/branch-1.3/src/Fl_PostScript.cxx
===================================================================
--- branches/branch-1.3/src/Fl_PostScript.cxx 2012-05-09 08:13:53 UTC (rev
9468)
+++ branches/branch-1.3/src/Fl_PostScript.cxx 2012-05-09 11:45:08 UTC (rev
9469)
@@ -1273,11 +1273,10 @@
}
void Fl_PostScript_Graphics_Driver::pie(int x, int y, int w, int h, double a1,
double a2) {
-
fprintf(output, "GS\n");
+ begin_polygon();
fprintf(output, "%g %g TR\n", x + w/2.0 -0.5 , y + h/2.0 - 0.5);
fprintf(output, "%g %g SC\n", (w-1)/2.0 , (h-1)/2.0 );
- begin_polygon();
vertex(0,0);
arc(0.0,0.0, 1, a2, a1);
end_polygon();
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit