From f23c6d7ad185c4e5ece4cf47710bd2e81d7ca254 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 14 Feb 2010 22:13:14 +0100 Subject: Use setTarget a bit earlier --- src/graphics.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/graphics.cpp') diff --git a/src/graphics.cpp b/src/graphics.cpp index 7f05dbc8..737af9f8 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -64,7 +64,7 @@ bool Graphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel) else displayFlags |= SDL_SWSURFACE; - mTarget = SDL_SetVideoMode(w, h, bpp, displayFlags); + setTarget(SDL_SetVideoMode(w, h, bpp, displayFlags)); if (!mTarget) return false; @@ -98,8 +98,6 @@ bool Graphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel) ((vi->blit_fill) ? "yes" : "no")); logger->log("Available video memory: %d", vi->video_mem); - setTarget(mTarget); - return true; } -- cgit v1.2.3-70-g09d2