system: Adjust caption according to PROJECT_NAME
This commit is contained in:
parent
e7f3c9c17f
commit
69f753d26f
|
@ -10,6 +10,7 @@ elseif(SDL1_2_BUILD)
|
|||
set(inc ${inc} "sdl-1.2/inc")
|
||||
set(privinc ${privinc} "sdl-1.2/privinc")
|
||||
set(privdeps ${privdeps} SDL::SDL)
|
||||
set(privdefs ${privdefs} "PROJECT_NAME=\"${PROJECT_NAME}\"")
|
||||
|
||||
if(WIN9X_BUILD)
|
||||
set(src ${src} "win9x/src/system.c")
|
||||
|
@ -21,3 +22,4 @@ endif()
|
|||
add_library(system ${src})
|
||||
target_include_directories(system PUBLIC ${inc} PRIVATE ${privinc})
|
||||
target_link_libraries(system PRIVATE ${privdeps})
|
||||
target_compile_definitions(system PRIVATE ${privdefs})
|
||||
|
|
|
@ -37,7 +37,7 @@ int system_init(void)
|
|||
else if (gfx_init() || sfx_init() || net_init())
|
||||
goto failure;
|
||||
|
||||
SDL_WM_SetCaption("rts", NULL);
|
||||
SDL_WM_SetCaption(PROJECT_NAME, NULL);
|
||||
SDL_ShowCursor(0);
|
||||
/* SDL_WM_GrabInput(SDL_GRAB_ON); */
|
||||
SDL_EnableUNICODE(1);
|
||||
|
|
Loading…
Reference in New Issue