Open AntTheAlchemist opened 1 month ago
Currently, SDL_LEAN_AND_MEAN doesn't do anything, due to this #ifdef logic (for example):
SDL_LEAN_AND_MEAN
#ifdef
#ifndef SDL_LEAN_AND_MEAN #define SDL_LEAN_AND_MEAN 0 #endif // ... #ifndef SDL_VIDEO_RENDER_SW #define SDL_VIDEO_RENDER_SW !SDL_LEAN_AND_MEAN #endif
SDL_VIDEO_RENDER_SW will always be defined (as either 0 or 1, or blank), so therefore:
SDL_VIDEO_RENDER_SW
#ifdef SDL_VIDEO_RENDER_SW &SW_RenderDriver, #endif
This will always add the software renderer, no matter if SDL_LEAN_AND_MEAN is defined as 0, 1 or undefined. We should be using #undef SDL_VIDEO_RENDER_SW?
#undef SDL_VIDEO_RENDER_SW
Commit 387774a seemed to break this, and it may affect much more than SDL_LEAN_AND_MEAN?
#undef won't work, because there are still places that use #if and expecting a 0 / 1.
#undef
#if
Currently,
SDL_LEAN_AND_MEAN
doesn't do anything, due to this#ifdef
logic (for example):SDL_VIDEO_RENDER_SW
will always be defined (as either 0 or 1, or blank), so therefore:This will always add the software renderer, no matter if
SDL_LEAN_AND_MEAN
is defined as 0, 1 or undefined. We should be using#undef SDL_VIDEO_RENDER_SW
?Commit 387774a seemed to break this, and it may affect much more than
SDL_LEAN_AND_MEAN
?