reinit the console when changing the video mode.
svn-id: r44232
This commit is contained in:
parent
cb41cea6f1
commit
d020800e57
2 changed files with 7 additions and 2 deletions
|
@ -66,6 +66,7 @@ static void show_console(int code) {
|
|||
|
||||
printf("ScummVM exited abnormally (%d).\n", code);
|
||||
|
||||
gfx_frame_abort();
|
||||
if (!gfx_frame_start())
|
||||
return;
|
||||
|
||||
|
@ -141,7 +142,7 @@ int main(int argc, char *argv[]) {
|
|||
PAD_Init();
|
||||
AUDIO_Init(NULL);
|
||||
|
||||
gfx_video_init(GFX_STANDARD_AUTO, GFX_MODE_DEFAULT);
|
||||
gfx_video_init(NULL);
|
||||
gfx_init();
|
||||
gfx_con_init(NULL);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue