summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-15 19:19:24 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-16 20:53:55 +0200
commitae4ed3522929946161558cf06da360e887187263 (patch)
tree42e6eba2f92ad3f8c3a630b17694afc0b2e4c083 /src/drivers
parent15fe9d98808065ab7a7d0659e8d44c7a999175e4 (diff)
Add virtual void Fl_Graphics_Driver::draw_circle()
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver.H1
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx7
2 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H
index 13ac8f750..4d1f45c82 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H
@@ -209,6 +209,7 @@ public:
void line_style(int style, int width, char* dashes) FL_OVERRIDE;
void arc_unscaled(int x, int y, int w, int h, double a1, double a2) FL_OVERRIDE;
void pie_unscaled(int x, int y, int w, int h, double a1, double a2) FL_OVERRIDE;
+ void draw_circle(int x, int y, int d, Fl_Color c) FL_OVERRIDE;
void transformed_vertex(double xf, double yf) FL_OVERRIDE;
void vertex(double x,double y) FL_OVERRIDE;
void end_points() FL_OVERRIDE;
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
index 7897dce53..fac835d5f 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
@@ -48,10 +48,9 @@ int Fl_GDIplus_Graphics_Driver::antialias() {
return active;
}
-#endif
-
-
-#if USE_GDIPLUS
+void Fl_GDIplus_Graphics_Driver::draw_circle(int x, int y, int d, Fl_Color c) {
+ Fl_Graphics_Driver::draw_circle(x, y, d, c);
+}
int Fl_GDIplus_Graphics_Driver::gdiplus_state_ = Fl_GDIplus_Graphics_Driver::STATE_CLOSED;
ULONG_PTR Fl_GDIplus_Graphics_Driver::gdiplus_token_ = 0;