Skip to content

Commit baafa2e

Browse files
committed
Updated to the latest version of SDL
1 parent cf0aa8e commit baafa2e

40 files changed

+520
-520
lines changed

examples/playmus.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ int main(int argc, char *argv[])
114114
{
115115
int audio_volume = MIX_MAX_VOLUME;
116116
int looping = 0;
117-
SDL_bool interactive = SDL_FALSE;
118-
SDL_bool use_io = SDL_FALSE;
117+
bool interactive = false;
118+
bool use_io = false;
119119
int i;
120120
const char *typ;
121121
const char *tag_title = NULL;
@@ -157,7 +157,7 @@ int main(int argc, char *argv[])
157157
looping = -1;
158158
} else
159159
if (SDL_strcmp(argv[i], "-i") == 0) {
160-
interactive = SDL_TRUE;
160+
interactive = true;
161161
} else
162162
if (SDL_strcmp(argv[i], "-8") == 0) {
163163
spec.format = SDL_AUDIO_U8;
@@ -212,7 +212,7 @@ int main(int argc, char *argv[])
212212

213213
/* Load the requested music file */
214214
if (use_io) {
215-
music = Mix_LoadMUS_IO(SDL_IOFromFile(argv[i], "rb"), SDL_TRUE);
215+
music = Mix_LoadMUS_IO(SDL_IOFromFile(argv[i], "rb"), true);
216216
} else {
217217
music = Mix_LoadMUS(argv[i]);
218218
}

examples/playwave.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
static int audio_open = 0;
4040
static Mix_Chunk *g_wave = NULL;
4141
static SDLTest_CommonState *state;
42-
static SDL_bool verbose = SDL_FALSE;
43-
static SDL_bool test_position = SDL_FALSE;
44-
static SDL_bool test_distance = SDL_FALSE;
45-
static SDL_bool test_panning = SDL_FALSE;
42+
static bool verbose = false;
43+
static bool test_position = false;
44+
static bool test_distance = false;
45+
static bool test_panning = false;
4646

4747
static void report_decoders(void)
4848
{
@@ -351,20 +351,20 @@ int main(int argc, char *argv[])
351351
reverse_sample = 1;
352352
consumed = 1;
353353
} else if (SDL_strcmp("--panning", argv[i]) == 0) {
354-
test_panning = SDL_TRUE;
354+
test_panning = true;
355355
consumed = 1;
356356
} else if (SDL_strcmp("--distance", argv[i]) == 0) {
357-
test_distance = SDL_TRUE;
357+
test_distance = true;
358358
consumed = 1;
359359
} else if (SDL_strcmp("--position", argv[i]) == 0) {
360-
test_position = SDL_TRUE;
360+
test_position = true;
361361
consumed = 1;
362362
} else if (SDL_strcmp("--version", argv[i]) == 0) {
363363
test_versions();
364364
CleanUp(0);
365365
consumed = 1;
366366
} else if (SDL_strcmp("--verbose", argv[i]) == 0) {
367-
verbose = SDL_TRUE;
367+
verbose = true;
368368
consumed = 1;
369369
} else if (argv[i][0] != '-' && !filename) {
370370
filename = argv[i];

external/SDL

Submodule SDL updated 273 files

0 commit comments

Comments
 (0)