From 7b9ef735a8d1fddf3887853abbd065271fa9c293 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sun, 25 Nov 2012 21:20:18 -0500 Subject: devdraw: restore compilation on OS X 10.6 Also add some ignored files to .hgignore R=rsc http://codereview.appspot.com/6842089 --- src/cmd/devdraw/cocoa-screen.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m index bceb7e3f..24baca1f 100644 --- a/src/cmd/devdraw/cocoa-screen.m +++ b/src/cmd/devdraw/cocoa-screen.m @@ -1408,9 +1408,11 @@ winsizepoints() static NSSize winsizepixels() { +#if DOSX_VERSION >= 100700 if (OSX_VERSION >= 100700 && devdrawretina) return [win.content convertSizeToBacking: winsizepoints()]; else +#endif return winsizepoints(); } -- cgit v1.2.3