Skip to content

Commit

Permalink
Use the symbolic names of the audio and video driver hints
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 13, 2023
1 parent 23beef4 commit c9647b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/SDL_test_common.c
Expand Up @@ -1063,7 +1063,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
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) {
SDL_Log("Couldn't initialize video driver: %s\n",
SDL_GetError());
Expand Down Expand Up @@ -1339,7 +1339,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
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) {
SDL_Log("Couldn't initialize audio driver: %s\n",
SDL_GetError());
Expand Down

0 comments on commit c9647b4

Please sign in to comment.