@@ -73,7 +73,7 @@ void CST_DrawExit()
7373 SDL_DestroyWindow (RootDisplay::mainDisplay->window );
7474 SDL_QuitSubSystem (SDL_INIT_VIDEO);
7575
76- #ifdef MUSIC
76+ #ifndef SIMPLE_SDL2
7777 auto root = RootDisplay::mainDisplay;
7878 if (root->music != NULL )
7979 {
@@ -92,7 +92,7 @@ void CST_DrawExit()
9292
9393void CST_MixerInit (RootDisplay* root)
9494{
95- #if defined(MUSIC )
95+ #if ! defined(SIMPLE_SDL2 )
9696 Mix_Init (MIX_INIT_MP3);
9797 if (Mix_OpenAudio (MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2 , 4096 ) != 0 ) {
9898 printf (" Failed to initialize SDL2 mixer: %s\n " , Mix_GetError ());
@@ -149,7 +149,7 @@ bool CST_SavePNG(CST_Texture* texture, const char* file_name)
149149
150150void CST_FadeInMusic (RootDisplay* root)
151151{
152- #if defined(MUSIC )
152+ #if ! defined(SIMPLE_SDL2 )
153153 if (root->music )
154154 {
155155 Mix_VolumeMusic (0.85 * MIX_MAX_VOLUME);
@@ -238,8 +238,8 @@ void CST_SetQualityHint(const char* quality)
238238
239239void CST_filledCircleRGBA (CST_Renderer* renderer, uint32_t x, uint32_t y, uint32_t radius, uint32_t r, uint32_t g, uint32_t b, uint32_t a)
240240{
241- #if !defined(_3DS) && !defined(_3DS_MOCK )
242- // TODO: filledCircleRGBA needs to take a surface on 3DS
241+ #if !defined(SIMPLE_SDL2 )
242+ // TODO: filledCircleRGBA needs to take a surface in SIMPLE_SDL2
243243 filledCircleRGBA (renderer, x, y, radius, r, g, b, a);
244244 #endif
245245}
@@ -323,8 +323,8 @@ void CST_roundedBoxRGBA (
323323 Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2,
324324 Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a
325325) {
326- #if !defined(_3DS) && !defined(_3DS_MOCK )
327- // TODO: roundedBoxRGBA needs to take a surface on 3DS
326+ #if !defined(SIMPLE_SDL2 )
327+ // TODO: roundedBoxRGBA needs to take a surface in SIMPLE_SDL2
328328 roundedBoxRGBA (renderer, x1, y1, x2, y2, rad, r, g, b, a);
329329 #endif
330330}
@@ -334,8 +334,8 @@ void CST_roundedRectangleRGBA (
334334 Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2,
335335 Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a
336336) {
337- #if !defined(_3DS) && !defined(_3DS_MOCK )
338- // TODO: roundedRectangleRGBA needs to take a surface on 3DS
337+ #if !defined(SIMPLE_SDL2 )
338+ // TODO: roundedRectangleRGBA needs to take a surface in SIMPLE_SDL2
339339 roundedRectangleRGBA (renderer, x1, y1, x2, y2, rad, r, g, b, a);
340340 #endif
341341}
@@ -345,13 +345,13 @@ void CST_rectangleRGBA (
345345 Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2,
346346 Uint8 r, Uint8 g, Uint8 b, Uint8 a
347347) {
348- #if !defined(_3DS) && !defined(_3DS_MOCK )
349- // TODO: rectangleRGBA needs to take a surface on 3DS
348+ #if !defined(SIMPLE_SDL2 )
349+ // TODO: rectangleRGBA needs to take a surface in SIMPLE_SDL2
350350 rectangleRGBA (renderer, x1, y1, x2, y2, r, g, b, a);
351351 #endif
352352}
353353
354- #ifdef MUSIC
354+ #ifndef SIMPLE_SDL2
355355
356356// returns a size-3 vector of: (title, artist, album)
357357std::vector<std::string> CST_GetMusicInfo (CST_Music* music) {
0 commit comments