[PS3] Possible fix for 0x0 resolution on

This commit is contained in:
clienthax 2017-12-07 19:49:11 +00:00
parent 23e6f0be37
commit d6daf2f573
1 changed files with 5 additions and 4 deletions

View File

@ -129,10 +129,11 @@ static void gfx_ctx_ps3_get_available_resolutions(void)
* make the last resolution
that was added to the list (the highest resolution)
the default resolution */
if (global->console.screen.resolutions.current.id > num_videomodes
|| defaultresolution)
global->console.screen.resolutions.current.idx =
global->console.screen.resolutions.count - 1;
if (global->console.screen.resolutions.current.id > num_videomodes || defaultresolution)
{
global->console.screen.resolutions.current.idx = resolution_count - 1;
global->console.screen.resolutions.current.id = global->console.screen.resolutions.list[global->console.screen.resolutions.current.idx];
}
global->console.screen.resolutions.check = true;
}