Fixed display being lost when window is resized
This commit is contained in:
parent
c66260982f
commit
7d8600c679
|
@ -455,6 +455,8 @@ run(Uxn *u)
|
||||||
case SDL_WINDOWEVENT:
|
case SDL_WINDOWEVENT:
|
||||||
if(event.window.event == SDL_WINDOWEVENT_EXPOSED)
|
if(event.window.event == SDL_WINDOWEVENT_EXPOSED)
|
||||||
redraw(u);
|
redraw(u);
|
||||||
|
else if(event.window.event == SDL_WINDOWEVENT_RESIZED)
|
||||||
|
winSurface = SDL_GetWindowSurface(gWindow);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if(event.type == stdin_event) {
|
if(event.type == stdin_event) {
|
||||||
|
|
Loading…
Reference in New Issue