mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-22 18:51:05 +00:00
Show dhewm3 version in window title
This commit is contained in:
parent
3ca51bd73e
commit
4e2f2c6241
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ bool GLimp_Init(glimpParms_t parms) {
|
|||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, parms.multiSamples);
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
window = SDL_CreateWindow(GAME_NAME,
|
||||
window = SDL_CreateWindow(ENGINE_VERSION,
|
||||
SDL_WINDOWPOS_UNDEFINED,
|
||||
SDL_WINDOWPOS_UNDEFINED,
|
||||
parms.width, parms.height, flags);
|
||||
|
@ -197,7 +197,7 @@ bool GLimp_Init(glimpParms_t parms) {
|
|||
|
||||
glConfig.isFullscreen = (SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN) == SDL_WINDOW_FULLSCREEN;
|
||||
#else
|
||||
SDL_WM_SetCaption(GAME_NAME, GAME_NAME);
|
||||
SDL_WM_SetCaption(ENGINE_VERSION, ENGINE_VERSION);
|
||||
|
||||
SetSDLIcon(); // for SDL1.2 this must be done before creating the window
|
||||
|
||||
|
|
Loading…
Reference in a new issue