summaryrefslogtreecommitdiff
path: root/FL/Fl_Graphics_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-03-01 15:10:52 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-03-01 15:11:00 +0100
commit0623a8d4b9e8a56cc435dc550c6b56fa1a9607e9 (patch)
tree48e6487325011a59b6016d0c43d2c1f78a6f1612 /FL/Fl_Graphics_Driver.H
parent37175d17571e075324fb5cb3c651e45b236cd6e5 (diff)
Remove duplicated code between derived classes of Fl_Graphics_Driver.
Diffstat (limited to 'FL/Fl_Graphics_Driver.H')
-rw-r--r--FL/Fl_Graphics_Driver.H5
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H
index 3bce25fb7..f3ed53d65 100644
--- a/FL/Fl_Graphics_Driver.H
+++ b/FL/Fl_Graphics_Driver.H
@@ -173,6 +173,9 @@ protected:
static const int region_stack_max = FL_REGION_STACK_SIZE - 1; ///< For internal use by FLTK
Fl_Region rstack[FL_REGION_STACK_SIZE]; ///< For internal use by FLTK
Fl_Font_Descriptor *font_descriptor_; ///< For internal use by FLTK
+ int p_size;
+ typedef struct { float x; float y; } XPOINT;
+ XPOINT *p;
#ifndef FL_DOXYGEN
enum {LINE, LOOP, POLYGON, POINT_};
inline int vertex_no() { return n; }
@@ -303,6 +306,7 @@ public:
virtual double transform_dx(double x, double y);
virtual double transform_dy(double x, double y);
virtual void transformed_vertex(double xf, double yf);
+ virtual void transformed_vertex0(float x, float y);
virtual void vertex(double x, double y);
virtual void end_points();
virtual void end_line();
@@ -486,7 +490,6 @@ protected:
void draw_image_mono(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D=1);
void transformed_vertex(double xf, double yf);
- virtual void transformed_vertex0(float x, float y);
void vertex(double x, double y);
virtual float override_scale();
virtual void restore_scale(float);