diff options
author | fvogel <fvogelnew1@free.fr> | 2018-07-25 06:23:36 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-07-25 06:23:36 (GMT) |
commit | 4ae845be0b6afaffdfdd00474f00f629932e3f97 (patch) | |
tree | d8ce120d52bf648d1ffa3ede03e7accffdbe3d4e /macosx/tkMacOSXButton.c | |
parent | c72614aa7113a1b37cc772f588f255860818b24a (diff) | |
download | tk-4ae845be0b6afaffdfdd00474f00f629932e3f97.zip tk-4ae845be0b6afaffdfdd00474f00f629932e3f97.tar.gz tk-4ae845be0b6afaffdfdd00474f00f629932e3f97.tar.bz2 |
Fix [59dde8a675]: 19 font-x.y tests fail on macOS
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r-- | macosx/tkMacOSXButton.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index 1bb3a1d..6930a36 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -29,7 +29,7 @@ * be allowed when drawing the HITheme button. */ -#define HI_PADX 0 +#define HI_PADX 2 #define HI_PADY 1 /* @@ -360,8 +360,7 @@ TkpComputeButtonGeometry( height = butPtr->height > 0 ? butPtr->height : height; } else { /* Text only */ - /*Add four pixels of padding to width for text-only buttons to improve appearance.*/ - width = txtWidth + butPtr->indicatorSpace + 4; + width = txtWidth + butPtr->indicatorSpace; height = txtHeight; if (butPtr->width > 0) { width = butPtr->width * charWidth; |