Better, yet no different.

This commit is contained in:
William McBrine
2019-04-20 14:14:30 -04:00
parent 33b4f5765f
commit 11eb42e192

View File

@@ -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);