SDL: Set the window name when using SDL 1.2

This commit is contained in:
Cameron Cawley 2018-11-30 18:11:35 +00:00 committed by endrift
parent bc9dff00da
commit 11559cb2a9
2 changed files with 2 additions and 0 deletions

View File

@ -55,5 +55,6 @@ void mSDLGLCommonInit(struct mSDLRenderer* renderer) {
#else
SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_OPENGL | (SDL_FULLSCREEN * renderer->fullscreen));
#endif
SDL_WM_SetCaption(projectName, "");
#endif
}

View File

@ -26,6 +26,7 @@ bool mSDLSWInit(struct mSDLRenderer* renderer) {
#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);