summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-10-10 16:58:48 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-10-10 16:58:48 +0200
commit1df79078b7992010f8cde6b8915408ac9f6305a2 (patch)
tree475ad4212a4523689659c70151b8ec169251328d /FL
parente4709b837dbc0670f61ae18f34fef3cacae8aafa (diff)
Remove duplications between Fl_Graphics_Driver and derived classes.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Graphics_Driver.H3
1 files changed, 1 insertions, 2 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H
index eacb03add..5de983554 100644
--- a/FL/Fl_Graphics_Driver.H
+++ b/FL/Fl_Graphics_Driver.H
@@ -166,7 +166,7 @@ protected:
matrix m; ///< current transformation matrix
int n; ///< For internal use by FLTK
int gap_; ///< For internal use by FLTK
- int what; ///< For internal use by FLTK
+ enum SHAPE {NONE=0, LINE, LOOP, POLYGON, POINTS} what;
int rstackptr; ///< For internal use by FLTK
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
@@ -175,7 +175,6 @@ protected:
typedef struct { float x; float y; } XPOINT;
XPOINT *xpoint;
#ifndef FL_DOXYGEN
- enum {LINE, LOOP, POLYGON, POINT_};
inline int vertex_no() { return n; }
inline int vertex_kind() {return what;}
#endif