Exemple #1
0
    def set_screen_size():
        w = Config.getint('graphics', 'width')
        h = Config.getint('graphics', 'height')
        dim = Window.size

        if platform not in ('ios', 'android'):
            Window.size = (w, h)

        scalex = dim[0] / float(w)
        scaley = dim[1] / float(h)
        scale.set_scale(scalex, scaley)