change the approach to wii resolution changing, this is more stable

This commit is contained in:
radius 2015-07-06 16:07:33 -05:00
parent eadaad57da
commit 2aa7c46e78
4 changed files with 32 additions and 4 deletions

View file

@ -270,9 +270,20 @@ static int action_start_video_resolution(const char *path,
global_t *global = global_get_ptr();
(void)global;
(void)width;
(void)height;
video_driver_set_video_mode(640, 480, true);
if (video_driver_get_video_output_size(&width, &height))
{
video_driver_set_video_mode(width, height, true);
global->console.screen.resolutions.width = width;
global->console.screen.resolutions.height = height;
char msg[PATH_MAX_LENGTH] = {0};
snprintf(msg, sizeof(msg),"Resetting to: %dx%d",width, height);
rarch_main_msg_queue_push(msg, 1, 100, true);
}
return 0;
}