diff options
author | culler <culler> | 2019-01-16 14:06:13 (GMT) |
---|---|---|
committer | culler <culler> | 2019-01-16 14:06:13 (GMT) |
commit | bf838a24f35ee704ccdc9b8538c32a1559f4c3e7 (patch) | |
tree | 1246fa6d1307ac684ac8d80fa3b58d7ca31ac75b /macosx/tkMacOSXButton.c | |
parent | c910f94eaaf0390532bf9b6f96c43e89c2e7939d (diff) | |
download | tk-bf838a24f35ee704ccdc9b8538c32a1559f4c3e7.zip tk-bf838a24f35ee704ccdc9b8538c32a1559f4c3e7.tar.gz tk-bf838a24f35ee704ccdc9b8538c32a1559f4c3e7.tar.bz2 |
Tiny adjustment to text position, to match native buttons.
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r-- | macosx/tkMacOSXButton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index d387b83..c0b83f2 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -545,7 +545,6 @@ DrawButtonImageAndText( } imageXOffset += x; imageYOffset += y; - textYOffset -= 1; if (butPtr->image != NULL) { if ((butPtr->selectImage != NULL) && @@ -569,6 +568,7 @@ DrawButtonImageAndText( XSetClipOrigin(butPtr->display, dpPtr->gc, 0, 0); } + y += 1; /* Tweak to match native buttons. */ Tk_DrawTextLayout(butPtr->display, pixmap, dpPtr->gc, butPtr->textLayout, x + textXOffset, y + textYOffset, 0, -1); @@ -621,6 +621,7 @@ DrawButtonImageAndText( butPtr->textWidth + butPtr->indicatorSpace, butPtr->textHeight, &x, &y); x += butPtr->indicatorSpace; + y += 1; /* Tweak to match native buttons */ Tk_DrawTextLayout(butPtr->display, pixmap, dpPtr->gc, butPtr->textLayout, x, y, 0, -1); } |