From 3c404128c4669a1f4f190e20a89553677717fc50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Sep 2016 22:01:44 +0300 Subject: Add missing comments into defines. --- src/utils/sdlhelper.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/utils/sdlhelper.cpp') diff --git a/src/utils/sdlhelper.cpp b/src/utils/sdlhelper.cpp index 2e0b51e54..501f27034 100644 --- a/src/utils/sdlhelper.cpp +++ b/src/utils/sdlhelper.cpp @@ -48,7 +48,8 @@ bool SDL::getAllVideoModes(StringVect &modeList) logger->log("support mode: " + modeString); modeList.push_back(modeString); return true; -#else +#else // ANDROID + /* Check which modes are available */ if (modes == static_cast(nullptr)) { @@ -72,7 +73,7 @@ bool SDL::getAllVideoModes(StringVect &modeList) } return true; } -#endif +#endif // ANDROID } void SDL::SetWindowTitle(const SDL_Surface *const window A_UNUSED, @@ -162,7 +163,8 @@ void SDL::makeCurrentContext(void *const context) info.info.x11.display, context); } -#else +#else // defined(USE_X11) && defined(USE_OPENGL) + void *SDL::createGLContext(SDL_Surface *const window A_UNUSED, const int major A_UNUSED, const int minor A_UNUSED, @@ -174,6 +176,6 @@ void *SDL::createGLContext(SDL_Surface *const window A_UNUSED, void SDL::makeCurrentContext(void *const context A_UNUSED) { } -#endif +#endif // defined(USE_X11) && defined(USE_OPENGL) #endif // USE_SDL2 -- cgit v1.2.3-60-g2f50