diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-06-17 12:48:56 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-12-22 13:37:07 +0100 |
commit | d751b1837f5baed6bb7f2d3991a81ce4368e2121 (patch) | |
tree | 16798030ab7f85b3571ec6f070450d64960e9925 /vncviewer/fltk | |
parent | 850acc728c60700f5d31ad27e2120e0d5a751887 (diff) | |
download | tigervnc-d751b1837f5baed6bb7f2d3991a81ce4368e2121.tar.gz tigervnc-d751b1837f5baed6bb7f2d3991a81ce4368e2121.zip |
Fix up padding for radio/check buttons
Try to follow the actual padding that FLTK adds to these widgets.
The extra one pixel on each is because of a bug in FLTK's focus drawing
code, where the box is always one pixel too small in both dimensions.
Diffstat (limited to 'vncviewer/fltk')
-rw-r--r-- | vncviewer/fltk/layout.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vncviewer/fltk/layout.h b/vncviewer/fltk/layout.h index ff4600b8..01dc73e6 100644 --- a/vncviewer/fltk/layout.h +++ b/vncviewer/fltk/layout.h @@ -59,9 +59,9 @@ static inline int gui_str_len(const char *str) #define BUTTON_WIDTH 115 #define BUTTON_HEIGHT 27 -/* Fl_Round_Button */ -#define RADIO_MIN_WIDTH (FL_NORMAL_SIZE + 5) -#define RADIO_HEIGHT (FL_NORMAL_SIZE + 7) +/* Fl_Round_Button (padding + focus draw bug) */ +#define RADIO_MIN_WIDTH (FL_NORMAL_SIZE + 4 + 1) +#define RADIO_HEIGHT (FL_NORMAL_SIZE + 4 + 1) /* Fl_Check_Button */ #define CHECK_MIN_WIDTH RADIO_MIN_WIDTH |