diff --git a/triditko/__main__.py b/triditko/__main__.py index 3997126..bff3db6 100644 --- a/triditko/__main__.py +++ b/triditko/__main__.py @@ -66,6 +66,10 @@ def main(): for event in pg.event.get(): if event.type == pg.QUIT: running = False # The while is too outer :-/ + elif event.type == pg.VIDEORESIZE: + base_surface, (item_w, item_h) = get_base_surface(event.size, categories) + elif event.type == pg.VIDEOEXPOSE: + pg.display.flip() # Do we need this? elif event.type == pg.KEYDOWN and not pressed: # We need to do our own press handling pressed = True