aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/fltk/theme.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/fltk/theme.cxx')
-rw-r--r--vncviewer/fltk/theme.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vncviewer/fltk/theme.cxx b/vncviewer/fltk/theme.cxx
index f89933a3..22e04dc6 100644
--- a/vncviewer/fltk/theme.cxx
+++ b/vncviewer/fltk/theme.cxx
@@ -25,6 +25,8 @@
#include <config.h>
#endif
+#include <assert.h>
+
#ifdef WIN32
#include <windows.h>
#endif
@@ -271,6 +273,9 @@ void init_theme()
const int PX = 2;
const int PY = 2;
+ // FLTK lacks a bounds check
+ assert(THEME_ROUND_DOWN_BOX < 256);
+
Fl::set_boxtype(THEME_UP_FRAME, theme_up_frame, PX, PY, PX*2, PY*2);
Fl::set_boxtype(THEME_DOWN_FRAME, theme_down_frame, PX, PY, PX*2, PY*2);
Fl::set_boxtype(THEME_THIN_UP_FRAME, theme_up_frame, PX, PY, PX*2, PY*2);