From eaf8472a981ba3cab7ef67976a069ec65504b9d5 Mon Sep 17 00:00:00 2001 From: rude Date: Sun, 8 Nov 2009 17:16:42 +0100 Subject: [PATCH] Removed "SDL_app" caption before window is created initially. --- src/modules/graphics/opengl/Graphics.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 7d4832bd3..bd1725083 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -18,11 +18,10 @@ * 3. This notice may not be removed or altered from any source distribution. **/ -#include "Graphics.h" - -// LOVE #include +#include "Graphics.h" + namespace love { namespace graphics @@ -186,6 +185,9 @@ namespace opengl // Fullscreen? Uint32 sdlflags = fullscreen ? (SDL_OPENGL | SDL_FULLSCREEN) : SDL_OPENGL; + if(!isCreated()) + setCaption(""); + // Have SDL set the video mode. if(SDL_SetVideoMode(width, height, 32, sdlflags ) == 0) {