Merge pull request #5877 from clienthax/ps3res

[PS3] Possible fix for 0x0 resolution
This commit is contained in:
Twinaphex 2017-12-07 21:03:36 +01:00 committed by GitHub
commit d840625fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}