summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2014-08-27 14:22:55 (GMT)
committerhypnotoad <yoda@etoyoc.com>2014-08-27 14:22:55 (GMT)
commitf519c380a7f8158faeaa67fc154cef64f4ac9a8e (patch)
treea42cd9666c6c57d6983e740ea2dd6b944d5f703a /macosx/tkMacOSXButton.c
parent6f94865121c05acf2559f1edbd66914b04d9b189 (diff)
downloadtk-f519c380a7f8158faeaa67fc154cef64f4ac9a8e.zip
tk-f519c380a7f8158faeaa67fc154cef64f4ac9a8e.tar.gz
tk-f519c380a7f8158faeaa67fc154cef64f4ac9a8e.tar.bz2
An improvement on before
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r--macosx/tkMacOSXButton.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index bd5cedd..4e7904c 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -375,8 +375,9 @@ NSRect TkMacOSXGetButtonFrame(
{
MacButton *macButtonPtr = (MacButton *) butPtr;
Tk_Window tkwin = butPtr->tkwin;
+ unsigned short tkwint=(unsigned int)tkwin;
TkWindow *winPtr = (TkWindow *) tkwin;
- if(tkwin==0xffffffff || tkwin==0xffffffff00000000) {
+ if(tkwint==0xffffffff || tkwint==0) {
return NSZeroRect;
}
if (tkwin) {