summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-07-25 06:23:36 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-07-25 06:23:36 (GMT)
commit4ae845be0b6afaffdfdd00474f00f629932e3f97 (patch)
treed8ce120d52bf648d1ffa3ede03e7accffdbe3d4e /macosx/tkMacOSXButton.c
parentc72614aa7113a1b37cc772f588f255860818b24a (diff)
downloadtk-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.c5
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;