summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}