uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 7d8600c6793c91bbb0d5e903891614186b12fc11
parent c66260982ff2b1355b5c4e524742cb33231b81c0
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun,  8 Aug 2021 20:47:01 +0100

Fixed display being lost when window is resized

Diffstat:
Msrc/uxnemu.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) {