diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-08-17 14:46:04 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-08-17 14:46:04 +0200 |
commit | 4cef5c996f18e3688bf13ec1ccee2f22ff888071 (patch) | |
tree | 3e65f0c4f0382b9f31f0957f38b96ff55bb68f80 /vncviewer/fltk/theme.h | |
parent | f632c47808c6540633068cbaf22407628980e34e (diff) | |
download | tigervnc-4cef5c996f18e3688bf13ec1ccee2f22ff888071.tar.gz tigervnc-4cef5c996f18e3688bf13ec1ccee2f22ff888071.zip |
Move custom FLTK box types to valid range
FLTK only allows 256 different box types, but it doesn't actually check
this when registering new ones.
Move our custom types to a valid range, and add an assert for good
measure to make sure we don't overflow FLTK's internal structures.
Diffstat (limited to 'vncviewer/fltk/theme.h')
-rw-r--r-- | vncviewer/fltk/theme.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/fltk/theme.h b/vncviewer/fltk/theme.h index 8793bd7c..b6a53218 100644 --- a/vncviewer/fltk/theme.h +++ b/vncviewer/fltk/theme.h @@ -26,7 +26,7 @@ #include <FL/Enumerations.H> -#define _THEME_BOX_BASE (FL_FREE_BOXTYPE+1000) +#define _THEME_BOX_BASE (FL_FREE_BOXTYPE+20) #define THEME_UP_FRAME (Fl_Boxtype)(_THEME_BOX_BASE+0) #define THEME_DOWN_FRAME (Fl_Boxtype)(_THEME_BOX_BASE+1) |