[Scummvm-cvs-logs] SF.net SVN: scummvm:[44232] scummvm/trunk/backends/platform/wii
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Mon Sep 21 22:45:22 CEST 2009
Revision: 44232
http://scummvm.svn.sourceforge.net/scummvm/?rev=44232&view=rev
Author: dhewg
Date: 2009-09-21 20:45:21 +0000 (Mon, 21 Sep 2009)
Log Message:
-----------
reinit the console when changing the video mode.
Modified Paths:
--------------
scummvm/trunk/backends/platform/wii/main.cpp
scummvm/trunk/backends/platform/wii/osystem_gfx.cpp
Modified: scummvm/trunk/backends/platform/wii/main.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/main.cpp 2009-09-21 01:15:34 UTC (rev 44231)
+++ scummvm/trunk/backends/platform/wii/main.cpp 2009-09-21 20:45:21 UTC (rev 44232)
@@ -66,6 +66,7 @@
printf("ScummVM exited abnormally (%d).\n", code);
+ gfx_frame_abort();
if (!gfx_frame_start())
return;
@@ -141,7 +142,7 @@
PAD_Init();
AUDIO_Init(NULL);
- gfx_video_init(GFX_STANDARD_AUTO, GFX_MODE_DEFAULT);
+ gfx_video_init(NULL);
gfx_init();
gfx_con_init(NULL);
Modified: scummvm/trunk/backends/platform/wii/osystem_gfx.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/osystem_gfx.cpp 2009-09-21 01:15:34 UTC (rev 44231)
+++ scummvm/trunk/backends/platform/wii/osystem_gfx.cpp 2009-09-21 20:45:21 UTC (rev 44232)
@@ -153,9 +153,13 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list