mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-19 03:08:27 +00:00
Use the symbolic names of the audio and video driver hints
This commit is contained in:
parent
23beef4fc7
commit
c9647b4ad0
1 changed files with 2 additions and 2 deletions
|
@ -1063,7 +1063,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
|
||||||
SDL_Log("%s\n", text);
|
SDL_Log("%s\n", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_SetHint("SDL_VIDEO_DRIVER", state->videodriver);
|
SDL_SetHint(SDL_HINT_VIDEO_DRIVER, state->videodriver);
|
||||||
if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) {
|
if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) {
|
||||||
SDL_Log("Couldn't initialize video driver: %s\n",
|
SDL_Log("Couldn't initialize video driver: %s\n",
|
||||||
SDL_GetError());
|
SDL_GetError());
|
||||||
|
@ -1339,7 +1339,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
|
||||||
SDL_Log("%s\n", text);
|
SDL_Log("%s\n", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_SetHint("SDL_AUDIO_DRIVER", state->audiodriver);
|
SDL_SetHint(SDL_HINT_AUDIO_DRIVER, state->audiodriver);
|
||||||
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
|
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) {
|
||||||
SDL_Log("Couldn't initialize audio driver: %s\n",
|
SDL_Log("Couldn't initialize audio driver: %s\n",
|
||||||
SDL_GetError());
|
SDL_GetError());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue