[Scummvm-cvs-logs] scummvm master -> c30094433591a6f1ac5980875876f5c51f452ebf

lordhoto lordhoto at gmail.com
Sat May 16 16:59:19 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c300944335 SDL: Add TODO about fullscreen modes to OpenGL SDL code.


Commit: c30094433591a6f1ac5980875876f5c51f452ebf
    https://github.com/scummvm/scummvm/commit/c30094433591a6f1ac5980875876f5c51f452ebf
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2015-05-16T16:57:44+02:00

Commit Message:
SDL: Add TODO about fullscreen modes to OpenGL SDL code.

Changed paths:
    backends/graphics/openglsdl/openglsdl-graphics.cpp



diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 53868b8..a2b172f 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;






More information about the Scummvm-git-logs mailing list