소스 검색

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…
취소
저장