The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
Simple Directmedia Layer Forums
Redraw after windows sleep
Joined: 13 Dec 2016
Location: Lystrup, Denmark
Posted: Thu Mar 16, 2017 8:27 am
We recently moved from SDL to SDL2 and have found that after Windows goes to sleep and wakes up, the SDL2 screen is not automatically refreshed.
Our application only updates the screen when there is a change, and only the parts of the screen that needs a change is redrawn.
Can we do anything to get SDL2 to refresh its framebuffer on the screen after windows sleeps?