From d6daf2f573705b521e39870754814d5cc21a168e Mon Sep 17 00:00:00 2001 From: clienthax Date: Thu, 7 Dec 2017 19:49:11 +0000 Subject: [PATCH] [PS3] Possible fix for 0x0 resolution on --- gfx/drivers_context/ps3_ctx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gfx/drivers_context/ps3_ctx.c b/gfx/drivers_context/ps3_ctx.c index e7c48bfdcd..0c3775ec58 100644 --- a/gfx/drivers_context/ps3_ctx.c +++ b/gfx/drivers_context/ps3_ctx.c @@ -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; }