From: Stefano Rivera Date: Fri, 16 May 2014 21:30:09 +0000 (+0200) Subject: Make the icon crisper on OSX X-Git-Tag: 0.1~175 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=2a857cc139b5dcdb9f2fffdd1302462c6ef2357a;p=naja.git Make the icon crisper on OSX --- diff --git a/naja/__main__.py b/naja/__main__.py index 7bc1442..02f49a3 100644 --- a/naja/__main__.py +++ b/naja/__main__.py @@ -21,7 +21,11 @@ def main(): # can't use convert_alpha until we've created a window with set_mode r = Loader('data') r.CONVERT_ALPHA = False - pygame.display.set_icon(r.get_image('robot_24.png', basedir='icons')) + icon_filename = 'robot_24.png' + # OSX accepts big icons, but scales up small icons smoothly + if sys.platform == 'darwin': + icon_filename = 'robot_512.png' + pygame.display.set_icon(r.get_image(icon_filename, basedir='icons')) pygame.display.set_mode(SCREEN, pgl.SWSURFACE) pygame.display.set_caption('Robolock II')