all repos — mgba @ 11559cb2a9e9fc044954559140f301296af06bb8

mGBA Game Boy Advance Emulator

SDL: Set the window name when using SDL 1.2
Cameron Cawley ccawley2011@gmail.com
Fri, 30 Nov 2018 18:11:35 +0000
commit

11559cb2a9e9fc044954559140f301296af06bb8

parent

bc9dff00da64b899662dc4433ff750a1f1fd715e

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

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

@@ -55,5 +55,6 @@ SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 16, SDL_OPENGL | (SDL_FULLSCREEN * renderer->fullscreen));

#else SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_OPENGL | (SDL_FULLSCREEN * renderer->fullscreen)); #endif + SDL_WM_SetCaption(projectName, ""); #endif }
M src/platform/sdl/sw-sdl1.csrc/platform/sdl/sw-sdl1.c

@@ -26,6 +26,7 @@ SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 16, SDL_DOUBLEBUF | SDL_HWSURFACE);

#else SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_DOUBLEBUF | SDL_HWSURFACE); #endif + SDL_WM_SetCaption(projectName, ""); unsigned width, height; renderer->core->desiredVideoDimensions(renderer->core, &width, &height);