Fixed fl_pie() drawing too small on X11 (STR #2703)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d75ad25e5e
commit
62b30f85cb
1
CHANGES
1
CHANGES
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
CHANGES IN FLTK 1.3.1
|
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 Fl_Menu issue with unusual menu flags (STR #2680)
|
||||||
- Fixed Windows DLL import of fl_xid() (STR #2670)
|
- Fixed Windows DLL import of fl_xid() (STR #2670)
|
||||||
|
|
||||||
|
@ -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 (w <= 0 || h <= 0) return;
|
||||||
|
|
||||||
#if defined(USE_X11)
|
#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));
|
XFillArc(fl_display, fl_window, fl_gc, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64));
|
||||||
#elif defined(WIN32)
|
#elif defined(WIN32)
|
||||||
if (a1 == a2) return;
|
if (a1 == a2) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user