diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-14 22:13:14 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-14 22:13:14 +0100 |
commit | f23c6d7ad185c4e5ece4cf47710bd2e81d7ca254 (patch) | |
tree | 507b2c6909d0f07ccfd21835b1f177148d775f3d | |
parent | 0796cdac80def934f3a8504538a41ea118ebc75f (diff) | |
download | mana-f23c6d7ad185c4e5ece4cf47710bd2e81d7ca254.tar.gz mana-f23c6d7ad185c4e5ece4cf47710bd2e81d7ca254.tar.bz2 mana-f23c6d7ad185c4e5ece4cf47710bd2e81d7ca254.tar.xz mana-f23c6d7ad185c4e5ece4cf47710bd2e81d7ca254.zip |
Use setTarget a bit earlier
-rw-r--r-- | src/graphics.cpp | 4 |
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; } |