summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryoda@etoyoc.com <hypnotoad>2014-08-27 14:22:55 (GMT)
committeryoda@etoyoc.com <hypnotoad>2014-08-27 14:22:55 (GMT)
commit73992e9c81cefd1b9e2d6cb4dcaca19bbd70d7f2 (patch)
tree7171e982c7c956da8b8f48044af8a2f48f0e655d
parentc188fbf35aa24bdaec16c0c983e6cf179699849e (diff)
downloadtk-73992e9c81cefd1b9e2d6cb4dcaca19bbd70d7f2.zip
tk-73992e9c81cefd1b9e2d6cb4dcaca19bbd70d7f2.tar.gz
tk-73992e9c81cefd1b9e2d6cb4dcaca19bbd70d7f2.tar.bz2
An improvement on before
-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) {