Skip to content
Snippets Groups Projects
  • Niklas Haas's avatar
    dav1dplay: Only repaint the window when necessary · eab4ef6a
    Niklas Haas authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    The current playback loop triggers a repaint on any single event,
    including spammy events such as SDL_MOUSEMOTION.
    
    Fix this by only repainting on SDL_WINDOWEVENT_EXPOSED, which is defined
    as the event sent when the window was damaged and needs to be repainted,
    as well as on new frames.
    
    Fixes #356
    eab4ef6a