SDL: Set the window name when using SDL 1.2
Cameron Cawley ccawley2011@gmail.com
Fri, 30 Nov 2018 18:11:35 +0000
2 files changed,
2 insertions(+),
0 deletions(-)
M
src/platform/sdl/gl-common.c
→
src/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.c
→
src/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);