From 11eb42e19278ae1560c3df5d036de08c907df2ff Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sat, 20 Apr 2019 14:14:30 -0400 Subject: [PATCH] Better, yet no different. --- sdl2/pdckbd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdl2/pdckbd.c b/sdl2/pdckbd.c index a2faeb9c..c5fd0965 100644 --- a/sdl2/pdckbd.c +++ b/sdl2/pdckbd.c @@ -447,10 +447,9 @@ int PDC_get_key(void) switch (event.window.event) { case SDL_WINDOWEVENT_SIZE_CHANGED: - pdc_sheight = event.window.data2; - pdc_swidth = event.window.data1; - pdc_screen = SDL_GetWindowSurface(pdc_window); + pdc_sheight = pdc_screen->h - pdc_xoffset; + pdc_swidth = pdc_screen->w - pdc_yoffset; touchwin(curscr); wrefresh(curscr);