summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.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/gui/setup_video.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/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 262c17e1..2e620095 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -401,6 +401,7 @@ void Setup_Video::action(const gcn::ActionEvent &event)
const int bpp = 0;
const bool fullscreen = ((int) config.getValue("screen", 0) == 1);
const bool hwaccel = ((int) config.getValue("hwaccel", 0) == 1);
+
// Try to set the desired video mode
if (!graphics->setVideoMode(width, height, bpp, fullscreen, hwaccel))
{
@@ -411,7 +412,9 @@ void Setup_Video::action(const gcn::ActionEvent &event)
}
// Initialize for drawing
+ graphics->_endDraw();
graphics->_beginDraw();
+ graphics->updateScreen();
// TODO: Find out why the drawing area doesn't resize without a restart.
new OkDialog("Screen resolution changed",