summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-03-17 16:33:14 +0000
committerManolo Gouy <Manolo>2017-03-17 16:33:14 +0000
commit367e567b7b14d88bc723dba6bde156bd705bf86c (patch)
tree78e4472938a1f16ba8a6b7d7aefee3974ce02316 /src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx
parent300e0b32a9b18e9ab37185532d3a7c885e710f02 (diff)
Remove class Fl_Translated_Xlib_Graphics_Driver and move its processing to Fl_Xlib_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx
index fcad6fd5f..b1a8cd10d 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_arci.cxx
@@ -28,11 +28,13 @@
void Fl_Xlib_Graphics_Driver::arc(int x,int y,int w,int h,double a1,double a2) {
if (w <= 0 || h <= 0) return;
- XDrawArc(fl_display, fl_window, gc_, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64));
+ XDrawArc(fl_display, fl_window, gc_, x+offset_x_,y+offset_y_,w-1,h-1, int(a1*64),int((a2-a1)*64));
}
void Fl_Xlib_Graphics_Driver::pie(int x,int y,int w,int h,double a1,double a2) {
if (w <= 0 || h <= 0) return;
+ x += offset_x_;
+ y += offset_y_;
XDrawArc(fl_display, fl_window, gc_, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64));
XFillArc(fl_display, fl_window, gc_, x,y,w-1,h-1, int(a1*64),int((a2-a1)*64));
}