summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-10-10 20:19:51 (GMT)
committerhobbs <hobbs>2003-10-10 20:19:51 (GMT)
commit9a2c95962d724f704f43721ad5c8f438fc2aef42 (patch)
tree357e2971d5b66a3d023766f3ddef0189d465b06f /macosx/tkMacOSXButton.c
parent15abaddf877bd0d1e49ece8961091a1ea0cfbc4f (diff)
downloadtk-9a2c95962d724f704f43721ad5c8f438fc2aef42.zip
tk-9a2c95962d724f704f43721ad5c8f438fc2aef42.tar.gz
tk-9a2c95962d724f704f43721ad5c8f438fc2aef42.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/tkMacOSXButton.c')
-rw-r--r--macosx/tkMacOSXButton.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index 9c442bd..80dbb23 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.6 2003/09/30 23:26:09 wolfsuit Exp $
+ * RCS: @(#) $Id: tkMacOSXButton.c,v 1.7 2003/10/10 20:19:51 hobbs Exp $
*/
#include "tkButton.h"
@@ -421,15 +421,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);