diff options
author | hypnotoad <yoda@etoyoc.com> | 2014-08-27 14:22:55 (GMT) |
---|---|---|
committer | hypnotoad <yoda@etoyoc.com> | 2014-08-27 14:22:55 (GMT) |
commit | f519c380a7f8158faeaa67fc154cef64f4ac9a8e (patch) | |
tree | a42cd9666c6c57d6983e740ea2dd6b944d5f703a /macosx | |
parent | 6f94865121c05acf2559f1edbd66914b04d9b189 (diff) | |
download | tk-f519c380a7f8158faeaa67fc154cef64f4ac9a8e.zip tk-f519c380a7f8158faeaa67fc154cef64f4ac9a8e.tar.gz tk-f519c380a7f8158faeaa67fc154cef64f4ac9a8e.tar.bz2 |
An improvement on before
Diffstat (limited to 'macosx')
-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 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) { |