[Scummvm-cvs-logs] SF.net SVN: scummvm:[48729] scummvm/branches/branch-1-1-0/backends/platform /wii/main.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Mon Apr 19 22:27:08 CEST 2010
Revision: 48729
http://scummvm.svn.sourceforge.net/scummvm/?rev=48729&view=rev
Author: dhewg
Date: 2010-04-19 20:27:08 +0000 (Mon, 19 Apr 2010)
Log Message:
-----------
Backport of r48727: Reinit the video mode when showing the console on an abnormal exit. This was not sccessful under some circumstances.
Modified Paths:
--------------
scummvm/branches/branch-1-1-0/backends/platform/wii/main.cpp
Modified: scummvm/branches/branch-1-1-0/backends/platform/wii/main.cpp
===================================================================
--- scummvm/branches/branch-1-1-0/backends/platform/wii/main.cpp 2010-04-19 20:26:06 UTC (rev 48728)
+++ scummvm/branches/branch-1-1-0/backends/platform/wii/main.cpp 2010-04-19 20:27:08 UTC (rev 48729)
@@ -62,17 +62,31 @@
}
static void show_console(int code) {
- u32 b;
+ u32 i, b;
printf("ScummVM exited abnormally (%d).\n", code);
gfx_frame_abort();
+ gfx_init();
+
if (!gfx_frame_start())
return;
gfx_con_draw();
gfx_frame_end();
+ for (i = 0; i < 60 * 3; ++i)
+ VIDEO_WaitVSync();
+
+ printf("Press any key to continue.\n");
+
+ if (!gfx_frame_start())
+ return;
+
+ gfx_con_draw();
+ gfx_frame_end();
+ VIDEO_WaitVSync();
+
while (true) {
b = 0;
@@ -90,6 +104,15 @@
VIDEO_WaitVSync();
}
+
+ printf("\n\nExiting...\n");
+
+ if (!gfx_frame_start())
+ return;
+
+ gfx_con_draw();
+ gfx_frame_end();
+ VIDEO_WaitVSync();
}
s32 reset_func(s32 final) {
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