summaryrefslogtreecommitdiff
path: root/src/Fl_PostScript.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-05-09 11:45:08 +0000
committerManolo Gouy <Manolo>2012-05-09 11:45:08 +0000
commit4a5e1ec1968dab24cc8671647fba0a2e85adfc7d (patch)
treed1335f95fc1af153284ade47d389f6db84b4a28c /src/Fl_PostScript.cxx
parentebf71d633b39f82437f440917729767e5572a61e (diff)
Fixed Fl_PostScript_Graphics_Driver::pie().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_PostScript.cxx')
-rw-r--r--src/Fl_PostScript.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx
index 44003c0c6..4a14f0b37 100644
--- a/src/Fl_PostScript.cxx
+++ b/src/Fl_PostScript.cxx
@@ -1273,11 +1273,10 @@ void Fl_PostScript_Graphics_Driver::arc(int x, int y, int w, int h, double a1, d
}
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();