Changeset 142:cd77974b2a87


Ignore:
Timestamp:
Sep 2, 2013, 5:20:44 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Send a fake resize event, to discover the real window size under a tiling window manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/engine.py

    r128 r142  
    2323        }
    2424        self.change_screen('menu')
     25        # Dummy resize event, to force us to realise our real size
     26        # http://stackoverflow.com/q/16442573/8629
     27        pygame.event.post(pygame.event.Event(pgl.VIDEORESIZE,
     28                                             size=(0, 0), w=0, h=0))
    2529
    2630    def change_screen(self, new_screen):
Note: See TracChangeset for help on using the changeset viewer.