def event(ev): """ Handles an event generated by pss (really, the ffdecode module). Returns true if we've handled it, or false if we should be pushing it to another module for further handling. """ if not pcm_ok: return False if ev.type == ALLOC_EVENT: alloc_surface(True) return True elif ev.type == REFRESH_EVENT: alloc_surface(False) if renpy.audio.music.get_playing("movie"): pss.refresh_event() renpy.game.interface.force_redraw = True # Return False, as a Movie should get this to know when to # redraw itself. return False return False
def event(ev): """ Handles an event generated by pss (really, the ffdecode module). Returns true if we've handled it, or false if we should be pushing it to another module for further handling. """ if not pcm_ok: return False if ev.type == ALLOC_EVENT: if renpy.display.video.fullscreen or not renpy.display.video.surface: surf = pygame.display.get_surface() else: surf = renpy.display.video.surface pss.alloc_event(renpy.display.scale.real(surf)) return True if ev.type == REFRESH_EVENT: if renpy.audio.music.get_playing("movie"): pss.refresh_event() # Return False, as a Movie should get this to know when to # redraw itself. return False return False