From 20522b715e9bafc197a0e06001720848d31dbd4d Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 9 Nov 1999 16:40:05 +0000 Subject: fl_arc() and fl_pie() were drawing 1 pixel too little horizontally and vertically under WIN32 compared to X11. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_arci.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fl_arci.cxx b/src/fl_arci.cxx index 7df643b6d..6db1693c5 100644 --- a/src/fl_arci.cxx +++ b/src/fl_arci.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_arci.cxx,v 1.4 1999/01/07 19:17:36 mike Exp $" +// "$Id: fl_arci.cxx,v 1.4.2.1 1999/11/09 16:40:05 mike Exp $" // // Arc (integer) drawing functions for the Fast Light Tool Kit (FLTK). // @@ -46,7 +46,7 @@ void fl_arc(int x,int y,int w,int h,double a1,double a2) { int ya = y+h/2-int(h*sin(a1/180.0*M_PI)); int xb = x+w/2+int(w*cos(a2/180.0*M_PI)); int yb = y+h/2-int(h*sin(a2/180.0*M_PI)); - Arc(fl_gc, x, y, x+w, y+h, xa, ya, xb, yb); + Arc(fl_gc, x, y, x+w+1, y+h+1, xa, ya, xb, yb); #else XDrawArc(fl_display, fl_window, fl_gc, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64)); #endif @@ -61,12 +61,12 @@ void fl_pie(int x,int y,int w,int h,double a1,double a2) { int xb = x+w/2+int(w*cos(a2/180.0*M_PI)); int yb = y+h/2-int(h*sin(a2/180.0*M_PI)); SelectObject(fl_gc, fl_brush()); - Pie(fl_gc, x, y, x+w, y+h, xa, ya, xb, yb); + Pie(fl_gc, x, y, x+w+1, y+h+1, xa, ya, xb, yb); #else XFillArc(fl_display, fl_window, fl_gc, x,y,w,h, int(a1*64),int((a2-a1)*64)); #endif } // -// End of "$Id: fl_arci.cxx,v 1.4 1999/01/07 19:17:36 mike Exp $". +// End of "$Id: fl_arci.cxx,v 1.4.2.1 1999/11/09 16:40:05 mike Exp $". // -- cgit v1.2.3