diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2013-03-23 19:36:10 (GMT) | 
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2013-03-23 19:41:44 (GMT) | 
| commit | 894c9fe561e9178b3d4004c1370c3a45a945c507 (patch) | |
| tree | 899d2f04ac4e0354c3354b5c2e64e595a0a18bce | |
| parent | 8ea615c7cf23cf32e3c3ab1acaaa5f2b20ffbe03 (diff) | |
Make OpenSCAD look better on retina displays.
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.
| -rw-r--r-- | Info.plist | 10 | 
1 files changed, 6 insertions, 4 deletions
| @@ -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> | 
