diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-04 21:13:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-04 21:13:37 (GMT) |
commit | 9fb30afdb0bfdb85c350bd487569d83e8cb4e0ff (patch) | |
tree | a66a1953d59689358591afb564f2c63cd8475c7e /macosx/tkMacOSXXStubs.c | |
parent | 007786784d3f2018825b57a9381dc0f5862b64bd (diff) | |
download | tk-9fb30afdb0bfdb85c350bd487569d83e8cb4e0ff.zip tk-9fb30afdb0bfdb85c350bd487569d83e8cb4e0ff.tar.gz tk-9fb30afdb0bfdb85c350bd487569d83e8cb4e0ff.tar.bz2 |
code cleanup (no functional change)
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r-- | macosx/tkMacOSXXStubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c index b3584ce..823fba8 100644 --- a/macosx/tkMacOSXXStubs.c +++ b/macosx/tkMacOSXXStubs.c @@ -94,8 +94,8 @@ TkMacOSXDisplayChanged( DefaultDepthOfScreen(screen) = NSBitsPerPixelFromDepth([s depth]); WidthOfScreen(screen) = bounds.size.width; HeightOfScreen(screen) = bounds.size.height; - WidthMMOfScreen(screen) = (bounds.size.width * 254 * 3 / 4 + 360) / 720; - HeightMMOfScreen(screen) = (bounds.size.height * 254 * 3 / 4 + 360) / 720; + WidthMMOfScreen(screen) = (bounds.size.width * 381 + 720) / 1440; /* = 3/4 * 254/720 */ + HeightMMOfScreen(screen) = (bounds.size.height * 381 + 720) / 1440; /* = 3/4 * 254/720 */ for (s in nsScreens) { maxBounds = NSUnionRect(maxBounds, [s visibleFrame]); |