summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--src/fl_arci.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index eff99c2c8..1b63a8fcf 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,7 @@
CHANGES IN FLTK 1.3.1
+ - Fixed fl_pie() drawing too small on X11 (STR #2703)
- Fixed Fl_Menu issue with unusual menu flags (STR #2680)
- Fixed Windows DLL import of fl_xid() (STR #2670)
diff --git a/src/fl_arci.cxx b/src/fl_arci.cxx
index cbaf37def..13ce0240d 100644
--- a/src/fl_arci.cxx
+++ b/src/fl_arci.cxx
@@ -77,6 +77,7 @@ void Fl_Graphics_Driver::pie(int x,int y,int w,int h,double a1,double a2) {
if (w <= 0 || h <= 0) return;
#if defined(USE_X11)
+ XDrawArc(fl_display, fl_window, fl_gc, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64));
XFillArc(fl_display, fl_window, fl_gc, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64));
#elif defined(WIN32)
if (a1 == a2) return;