diff options
author | culler <culler> | 2019-10-21 00:02:08 (GMT) |
---|---|---|
committer | culler <culler> | 2019-10-21 00:02:08 (GMT) |
commit | e5ec9901434a09547d80a2fa1f351dedcf9e7f1b (patch) | |
tree | a23379dcda195c1b444282b3e1f9d137b7b81f14 /macosx/tkMacOSXMenu.c | |
parent | b85f408680332d1174c512d285fb74c09a6d9833 (diff) | |
download | tk-e5ec9901434a09547d80a2fa1f351dedcf9e7f1b.zip tk-e5ec9901434a09547d80a2fa1f351dedcf9e7f1b.tar.gz tk-e5ec9901434a09547d80a2fa1f351dedcf9e7f1b.tar.bz2 |
Apply macOS patch for [aea00be1] by Christopher Chavez. Prevents glitches when the screen resolution is changed.
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r-- | macosx/tkMacOSXMenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index 7d2a073..735f7d2 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -821,7 +821,7 @@ TkpPostMenu( NSInteger itemIndex = index; NSInteger numItems = [menu numberOfItems]; NSMenuItem *item = nil; - NSPoint location = NSMakePoint(x, tkMacOSXZeroScreenHeight - y); + NSPoint location = NSMakePoint(x, TkMacOSXZeroScreenHeight() - y); inPostMenu = 1; result = TkPreprocessMenu(menuPtr); |