tdevdraw: fix retina mode - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c6d1f20537c9bbe0a49e89f81d4b70368ba4172f
DIR parent 9f3851871ed6edb544dfe5b518bff0121d6c020b
HTML Author: Russ Cox <rsc@swtch.com>
Date: Sun, 25 Nov 2012 22:43:57 -0500
devdraw: fix retina mode
R=rsc
http://codereview.appspot.com/6847104
Diffstat:
M src/cmd/devdraw/cocoa-screen.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m
t@@ -1408,7 +1408,7 @@ winsizepoints()
static NSSize
winsizepixels()
{
-#if DOSX_VERSION >= 100700
+#if OSX_VERSION >= 100700
if (OSX_VERSION >= 100700 && devdrawretina)
return [win.content convertSizeToBacking: winsizepoints()];
else