summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-12-26 22:45:24 -0700
committerIra Rice <irarice@gmail.com>2008-12-26 22:45:24 -0700
commit4854bc433cd74bb072d02e25aa416f06ff6257b4 (patch)
tree13fbae3ee50ea27829d31fb328d0ef761733dcc9 /src/graphics.cpp
parent0289c04b5454b42676f3b6beb68571e71617500c (diff)
downloadmana-4854bc433cd74bb072d02e25aa416f06ff6257b4.tar.gz
mana-4854bc433cd74bb072d02e25aa416f06ff6257b4.tar.bz2
mana-4854bc433cd74bb072d02e25aa416f06ff6257b4.tar.xz
mana-4854bc433cd74bb072d02e25aa416f06ff6257b4.zip
Fixed a potential leak in setup, changed the default border color to
white for wallpapers (matches our wallpapers better), and fixed the effect manager. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 82404bce..4854d5fa 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -59,6 +59,7 @@ bool Graphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel)
displayFlags |= SDL_SWSURFACE;
}
+ delete mScreen;
mScreen = SDL_SetVideoMode(w, h, bpp, displayFlags);
if (!mScreen) {
@@ -71,7 +72,7 @@ bool Graphics::setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel)
logger->log("Using video driver: %s", videoDriverName);
}
else {
- logger->log("Using video driver: unkown");
+ logger->log("Using video driver: unknown");
}
const SDL_VideoInfo *vi = SDL_GetVideoInfo();