There's a new event that's always sent when the window changes size, and that event is what the renderers listen for to determine if they need to rebind their context.
This commit is contained in:
Sam Lantinga
2011-02-12 19:02:14 -08:00
parent dcfeae7397
commit e6ec7f6b28
8 changed files with 16 additions and 8 deletions

View File

@@ -173,7 +173,7 @@ SW_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
{
SW_RenderData *data = (SW_RenderData *) renderer->driverdata;
if (event->event == SDL_WINDOWEVENT_RESIZED) {
if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
data->updateSize = SDL_TRUE;
}
}