aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wii/osystem_gfx.cpp
diff options
context:
space:
mode:
authorAndre Heider2009-09-21 20:45:21 +0000
committerAndre Heider2009-09-21 20:45:21 +0000
commitd020800e57dcedcc576439bb9716de851732cfc9 (patch)
tree4c5a3caf36ad97fae3c5ded00442fd4dfddcbd8a /backends/platform/wii/osystem_gfx.cpp
parentcb41cea6f17ede63f4bf5a5083e2ed97e33c58bd (diff)
downloadscummvm-rg350-d020800e57dcedcc576439bb9716de851732cfc9.tar.gz
scummvm-rg350-d020800e57dcedcc576439bb9716de851732cfc9.tar.bz2
scummvm-rg350-d020800e57dcedcc576439bb9716de851732cfc9.zip
reinit the console when changing the video mode.
svn-id: r44232
Diffstat (limited to 'backends/platform/wii/osystem_gfx.cpp')
-rw-r--r--backends/platform/wii/osystem_gfx.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp
index ea3487eacf..fdb32de362 100644
--- a/backends/platform/wii/osystem_gfx.cpp
+++ b/backends/platform/wii/osystem_gfx.cpp
@@ -153,9 +153,13 @@ void OSystem_Wii::switchVideoMode(int mode) {
printf("switchVideoMode %d\n", mode);
if (map[_actualGraphicsMode].mode != map[mode].mode) {
+ GXRModeObj obj;
+
gfx_video_deinit();
- gfx_video_init(GFX_STANDARD_AUTO, map[mode].mode);
+ gfx_video_get_modeobj(&obj, GFX_STANDARD_AUTO, map[mode].mode);
+ gfx_video_init(&obj);
gfx_init();
+ gfx_con_init(NULL);
}
_actualGraphicsMode = mode;