summaryrefslogtreecommitdiff
path: root/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-19 12:40:24 +0000
committerManolo Gouy <Manolo>2016-02-19 12:40:24 +0000
commit1b5e231c902ab198c577989db44946797ebd4893 (patch)
tree211751e0eceda308df4e51d94511362f5e0b55f6 /src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx
parent6d766cc6814a9e7a04c0b147c7a3cbdc0817dfd4 (diff)
Rename Fl_Graphics_Driver::set_gc(void*) to gc(void*) and Fl_Graphics_Driver::get_gc() to gc().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx
index de8729d74..7d70ddd42 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx
@@ -41,9 +41,9 @@ void Fl_GDI_Graphics_Driver::arc(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));
if (fabs(a1 - a2) < 90) {
- if (xa == xb && ya == yb) SetPixel(gc, xa, ya, fl_RGB());
- else Arc(gc, x, y, x+w, y+h, xa, ya, xb, yb);
- } else Arc(gc, x, y, x+w, y+h, xa, ya, xb, yb);
+ if (xa == xb && ya == yb) SetPixel(gc_, xa, ya, fl_RGB());
+ else Arc(gc_, x, y, x+w, y+h, xa, ya, xb, yb);
+ } else Arc(gc_, x, y, x+w, y+h, xa, ya, xb, yb);
}
void Fl_GDI_Graphics_Driver::pie(int x,int y,int w,int h,double a1,double a2) {
@@ -53,14 +53,14 @@ void Fl_GDI_Graphics_Driver::pie(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));
- SelectObject(gc, fl_brush());
+ SelectObject(gc_, fl_brush());
if (fabs(a1 - a2) < 90) {
if (xa == xb && ya == yb) {
- MoveToEx(gc, x+w/2, y+h/2, 0L);
- LineTo(gc, xa, ya);
- SetPixel(gc, xa, ya, fl_RGB());
- } else Pie(gc, x, y, x+w, y+h, xa, ya, xb, yb);
- } else Pie(gc, x, y, x+w, y+h, xa, ya, xb, yb);
+ MoveToEx(gc_, x+w/2, y+h/2, 0L);
+ LineTo(gc_, xa, ya);
+ SetPixel(gc_, xa, ya, fl_RGB());
+ } else Pie(gc_, x, y, x+w, y+h, xa, ya, xb, yb);
+ } else Pie(gc_, x, y, x+w, y+h, xa, ya, xb, yb);
}
#endif // FL_CFG_GFX_GDI_ARCI_CXX