Procházet zdrojové kódy

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.
pull/1529/head
Pierre Ossman před 1 rokem
rodič
revize
d751b1837f
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      vncviewer/fltk/layout.h

+ 3
- 3
vncviewer/fltk/layout.h Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit