Merge pull request #8 from nunuhara/linux-fullscreen

Fix fullscreen/resize issues on linux
This commit is contained in:
kichikuou
2019-07-18 20:04:20 +09:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -95,6 +95,9 @@ static void sdl_getEvent(void) {
SDL_WM_GrabInput(SDL_GRAB_OFF);
#endif
break;
case SDL_WINDOWEVENT_EXPOSED:
sdl_dirty = TRUE;
break;
}
break;
case SDL_KEYDOWN:
+1
View File
@@ -57,6 +57,7 @@ void sdl_setWindowSize(int x, int y, int w, int h) {
view_h = h;
SDL_SetWindowSize(sdl_window, w, h);
SDL_RenderSetLogicalSize(sdl_renderer, w, h);
if (sdl_display)
SDL_FreeSurface(sdl_display);
if (sdl_texture)