mirror of https://github.com/mgba-emu/mgba.git
SDL: Set the window name when using SDL 1.2
This commit is contained in:
parent
bc9dff00da
commit
11559cb2a9
|
@ -55,5 +55,6 @@ void mSDLGLCommonInit(struct mSDLRenderer* renderer) {
|
||||||
#else
|
#else
|
||||||
SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_OPENGL | (SDL_FULLSCREEN * renderer->fullscreen));
|
SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_OPENGL | (SDL_FULLSCREEN * renderer->fullscreen));
|
||||||
#endif
|
#endif
|
||||||
|
SDL_WM_SetCaption(projectName, "");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@ bool mSDLSWInit(struct mSDLRenderer* renderer) {
|
||||||
#else
|
#else
|
||||||
SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_DOUBLEBUF | SDL_HWSURFACE);
|
SDL_SetVideoMode(renderer->viewportWidth, renderer->viewportHeight, 32, SDL_DOUBLEBUF | SDL_HWSURFACE);
|
||||||
#endif
|
#endif
|
||||||
|
SDL_WM_SetCaption(projectName, "");
|
||||||
|
|
||||||
unsigned width, height;
|
unsigned width, height;
|
||||||
renderer->core->desiredVideoDimensions(renderer->core, &width, &height);
|
renderer->core->desiredVideoDimensions(renderer->core, &width, &height);
|
||||||
|
|
Loading…
Reference in New Issue