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 --- .hgignore | 7 +++++++ CONTRIBUTORS | 1 + src/cmd/devdraw/cocoa-screen.m | 2 ++ 3 files changed, 10 insertions(+) diff --git a/.hgignore b/.hgignore index 8a71772b..ae8348cb 100644 --- a/.hgignore +++ b/.hgignore @@ -18,3 +18,10 @@ y.tab.[ch]$ ^dict/ ^postscript/font/ \.orig$ +config +install.log +install.sum +last-change +lib/codereview/codereview.pyc +src/cmd/awk/y.output +src/cmd/devdraw/latin1.h diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e1ea4fb5..72154085 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -39,6 +39,7 @@ Rob Kroeger Rob Pike Russ Cox Sean McKean +Shenghou Ma Ties Bos Tim Newsham Tony Lainson 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