diff options
author | hobbs <hobbs> | 2003-10-10 20:20:47 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-10-10 20:20:47 (GMT) |
commit | b1dd701dde6fd16e30c716be332a2c546b1547b9 (patch) | |
tree | 93768e154c2529814da39175f6b0b5fb7e33e9ec /macosx | |
parent | 7936b0d094a827368142f391e7a7661ffd0ce786 (diff) | |
download | tk-b1dd701dde6fd16e30c716be332a2c546b1547b9.zip tk-b1dd701dde6fd16e30c716be332a2c546b1547b9.tar.gz tk-b1dd701dde6fd16e30c716be332a2c546b1547b9.tar.bz2 |
* mac/tkMacButton.c (TkpDisplayButton):
* macosx/tkMacOSXButton.c (TkpDisplayButton):
* unix/tkUnixButton.c (TkpDisplayButton): correct imageYOffset for
buttons with just images.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXButton.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index 749b4ef..dc9f405 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXButton.c,v 1.2.2.3 2003/09/25 05:37:48 das Exp $ + * RCS: @(#) $Id: tkMacOSXButton.c,v 1.2.2.4 2003/10/10 20:20:47 hobbs Exp $ */ #include "tkButton.h" @@ -417,15 +417,15 @@ TkpDisplayButton( y += dpPtr->offset; } imageXOffset += x; - imageXOffset += y; + imageYOffset += y; if (butPtr->image != NULL) { if ((butPtr->selectImage != NULL) && (butPtr->flags & SELECTED)) { Tk_RedrawImage(butPtr->selectImage, 0, 0, width, - height, pixmap, x, y); + height, pixmap, imageXOffset, imageYOffset); } else { Tk_RedrawImage(butPtr->image, 0, 0, width, height, - pixmap, x, y); + pixmap, imageXOffset, imageYOffset); } } else { XSetClipOrigin(butPtr->display, dpPtr->gc, x, y); |