]> source.dussan.org Git - tigervnc.git/commit
Move custom FLTK box types to valid range
authorPierre Ossman <ossman@cendio.se>
Thu, 17 Aug 2023 12:46:04 +0000 (14:46 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 17 Aug 2023 12:46:04 +0000 (14:46 +0200)
commit4cef5c996f18e3688bf13ec1ccee2f22ff888071
tree3e65f0c4f0382b9f31f0957f38b96ff55bb68f80
parentf632c47808c6540633068cbaf22407628980e34e
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.
vncviewer/fltk/theme.cxx
vncviewer/fltk/theme.h