all repos — mgba @ 084f0f037ef4eebb64a91a37f87fdfc1e82f2b57

mGBA Game Boy Advance Emulator

Fix fullscreen initialization
Jeffrey Pfau jeffrey@endrift.com
Fri, 25 Apr 2014 21:33:07 -0700
commit

084f0f037ef4eebb64a91a37f87fdfc1e82f2b57

parent

0386d41b40d9acfe2962b039cbdbf2fdfb8de7fd

2 files changed, 1 insertions(+), 2 deletions(-)

jump to
M src/platform/sdl/gl-main.csrc/platform/sdl/gl-main.c

@@ -139,7 +139,6 @@ renderer->window = SDL_CreateWindow("GBAc", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, renderer->viewportWidth, renderer->viewportHeight, SDL_WINDOW_OPENGL | (SDL_WINDOW_FULLSCREEN_DESKTOP * renderer->events.fullscreen));

SDL_GL_CreateContext(renderer->window); SDL_GetWindowSize(renderer->window, &renderer->viewportWidth, &renderer->viewportHeight); renderer->events.window = renderer->window; - renderer->events.fullscreen = 0; #else #ifdef COLOR_16_BIT SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 16, SDL_OPENGL);
M src/platform/sdl/sw-main.csrc/platform/sdl/sw-main.c

@@ -67,10 +67,10 @@

#if SDL_VERSION_ATLEAST(2, 0, 0) renderer.viewportWidth = opts.width; renderer.viewportHeight = opts.height; + renderer.events.fullscreen = opts.fullscreen; renderer.window = SDL_CreateWindow("GBAc", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, renderer.viewportWidth, renderer.viewportHeight, SDL_WINDOW_OPENGL | (SDL_WINDOW_FULLSCREEN_DESKTOP * renderer.events.fullscreen)); SDL_GetWindowSize(renderer.window, &renderer.viewportWidth, &renderer.viewportHeight); renderer.events.window = renderer.window; - renderer.events.fullscreen = 0; renderer.sdlRenderer = SDL_CreateRenderer(renderer.window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); #ifdef COLOR_16_BIT #ifdef COLOR_5_6_5