瀏覽代碼

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 1 年之前
父節點
當前提交
d751b1837f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      vncviewer/fltk/layout.h

+ 3
- 3
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

Loading…
取消
儲存