X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2F__main__.py;h=7bc1442f33b4113bdb91db71562d7da54a7c32c0;hb=05dec9325297def585919056b4c158d80856903c;hp=44d1a065c4d94400e8a9fd989731a18206ad7c85;hpb=ed7e83159f66ccb77c8edcee8619fc0f61247919;p=naja.git diff --git a/naja/__main__.py b/naja/__main__.py index 44d1a06..7bc1442 100644 --- a/naja/__main__.py +++ b/naja/__main__.py @@ -7,6 +7,7 @@ from naja.constants import SCREEN from naja.engine import Engine from naja.sound import sound from naja.options import parse_args +from naja.resources.loader import Loader from naja.scenes.menu import MenuScene @@ -16,8 +17,14 @@ def main(): pygame.display.init() pygame.font.init() + # set_icon needs to be called before set_mode on some platforms, but we + # 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')) + pygame.display.set_mode(SCREEN, pgl.SWSURFACE) - pygame.display.set_caption('Naja') + pygame.display.set_caption('Robolock II') sound.init() screen = pygame.display.get_surface()