summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixButton.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-10-10 20:20:47 (GMT)
committerhobbs <hobbs>2003-10-10 20:20:47 (GMT)
commitf21b0b281862c1937001b4fa19161b59eab679a0 (patch)
tree93768e154c2529814da39175f6b0b5fb7e33e9ec /unix/tkUnixButton.c
parentf20e77cbd2724af11ed36f9e85980b608a5629ae (diff)
downloadtk-f21b0b281862c1937001b4fa19161b59eab679a0.zip
tk-f21b0b281862c1937001b4fa19161b59eab679a0.tar.gz
tk-f21b0b281862c1937001b4fa19161b59eab679a0.tar.bz2
* mac/tkMacButton.c (TkpDisplayButton):
* macosx/tkMacOSXButton.c (TkpDisplayButton): * unix/tkUnixButton.c (TkpDisplayButton): correct imageYOffset for buttons with just images.
Diffstat (limited to 'unix/tkUnixButton.c')
-rw-r--r--unix/tkUnixButton.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixButton.c b/unix/tkUnixButton.c
index 46fac82..1246ece 100644
--- a/unix/tkUnixButton.c
+++ b/unix/tkUnixButton.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixButton.c,v 1.11.2.3 2003/04/26 02:58:17 hobbs Exp $
+ * RCS: @(#) $Id: tkUnixButton.c,v 1.11.2.4 2003/10/10 20:20:47 hobbs Exp $
*/
#include "tkButton.h"
@@ -293,15 +293,15 @@ TkpDisplayButton(clientData)
y += 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);
+ imageXOffset, imageYOffset);
}
} else {
XSetClipOrigin(butPtr->display, gc, x, y);