summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-07-23 21:52:24 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-07-23 21:52:24 +0000
commite2cc046d0987ab85057a934c6b1851271ea3895a (patch)
tree88d3b9bb6118f949dbb86161dfc8d44add956f82
parent5226d5aa7e12dc8a05ea49a64caa4c2415752515 (diff)
pie drawing in WIN32 differed from X11 pie drawing (w and h were 1 pixel too small)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--src/fl_arci.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 4b574a3de..9eacc1a97 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745, STR #942)
+ - Made pie drawing size for WIN32 and OS X the same as X11 (STR #905)
- Fixed OS X issue with OpenGL windows inside of Tabs (STR #602)
- Fluid Code Editor would occasionally not draw the last character
in the buffer (STR #798)
diff --git a/src/fl_arci.cxx b/src/fl_arci.cxx
index f4c56904f..39116b1e2 100644
--- a/src/fl_arci.cxx
+++ b/src/fl_arci.cxx
@@ -84,7 +84,7 @@ 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);
#elif defined(__APPLE_QD__)
Rect r; r.left=x; r.right=x+w+1; r.top=y; r.bottom=y+h+1;
a1 = a2-a1; a2 = 450-a2;