diff options
author | Johannes Schickel | 2015-05-16 16:57:44 +0200 |
---|---|---|
committer | Johannes Schickel | 2015-05-16 16:57:44 +0200 |
commit | c30094433591a6f1ac5980875876f5c51f452ebf (patch) | |
tree | bf0d2f45e92e5ed614489f7e9cc2b81db6606727 /backends/graphics | |
parent | 0654a45c05e2b5345fa373027f73df092564ddfc (diff) | |
download | scummvm-rg350-c30094433591a6f1ac5980875876f5c51f452ebf.tar.gz scummvm-rg350-c30094433591a6f1ac5980875876f5c51f452ebf.tar.bz2 scummvm-rg350-c30094433591a6f1ac5980875876f5c51f452ebf.zip |
SDL: Add TODO about fullscreen modes to OpenGL SDL code.
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 53868b86d8..a2b172f14a 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -57,6 +57,9 @@ OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager(uint desktopWidth, uint deskt } #else const SDL_Rect *const *availableModes = SDL_ListModes(NULL, SDL_OPENGL | SDL_FULLSCREEN); + // TODO: NULL means that there are no fullscreen modes supported. We + // should probably use this information and disable any fullscreen support + // in this case. if (availableModes != NULL && availableModes != (void *)-1) { for (;*availableModes; ++availableModes) { const SDL_Rect *mode = *availableModes; |