diff --git a/src/uxnemu.c b/src/uxnemu.c index 403b70f..3380b68 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -455,6 +455,8 @@ run(Uxn *u) case SDL_WINDOWEVENT: if(event.window.event == SDL_WINDOWEVENT_EXPOSED) redraw(u); + else if(event.window.event == SDL_WINDOWEVENT_RESIZED) + winSurface = SDL_GetWindowSurface(gWindow); break; default: if(event.type == stdin_event) {