summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXXStubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r--macosx/tkMacOSXXStubs.c4
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]);