Skip to content
Snippets Groups Projects
Commit eab4ef6a authored by Niklas Haas's avatar Niklas Haas Committed by Jean-Baptiste Kempf
Browse files

dav1dplay: Only repaint the window when necessary

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 videolan/dav1d#356
parent 61b65456
No related branches found
No related tags found
No related merge requests found
Pipeline #64970 passed with stages
in 5 minutes and 56 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment