Merge pull request #217 from ZenithMDC/SDL2-viewport-bugfix

SDL2: Fix fullscreen viewport bug
This commit is contained in:
Lior Halphon 2019-11-03 21:06:42 +02:00 committed by GitHub
commit 0bfcdafe2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static void handle_events(GB_gameboy_t *gb)
} }
case SDL_WINDOWEVENT: { case SDL_WINDOWEVENT: {
if (event.window.event == SDL_WINDOWEVENT_RESIZED) { if (event.window.event == SDL_WINDOWEVENT_SIZE_CHANGED) {
update_viewport(); update_viewport();
} }
break; break;