Skip to content

Commit

Permalink
Make OpenSCAD look better on retina displays.
Browse files Browse the repository at this point in the history
Apps need an NSPrincipalClass entry in Info.plist to look good on retina
displays, see "Framework-Scaled Mode Provides Automatic Scaling" in
http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html

It's also what we did in Chromium ( https://codereview.chromium.org/10069029 )
and what was suggested in openscad issue #279.

This only makes the window decoration and all text pretty. The 3d view
is still pixel-doubled: OpenGL is a pixel-based API and needs an
explicit opt-in. This can be addressed in a future patch.

While here, also consistently use tabs instead of spaces.
  • Loading branch information
nico committed Mar 23, 2013
1 parent 8ea615c commit 894c9fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@
<string>Editor</string>
<key>CFBundleTypeIconFile</key>
<string>SCAD.icns</string>
<key>LSIsAppleDefaultForType</key>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
</array>
<key>NSAppleScriptEnabled</key>
<true/>
<true/>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>OSAScriptingDefinition</key>
<string>OpenSCAD.sdef</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
</dict>
</plist>

0 comments on commit 894c9fe

Please sign in to comment.