mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-08 19:40:30 +00:00
(PS3) Go through get_video_output_size interface now - build fixes
This commit is contained in:
parent
523d9503da
commit
55a2209e8e
@ -227,11 +227,12 @@ static void gfx_ctx_ps3_get_video_size(void *data,
|
||||
static void gfx_ctx_ps3_get_video_output_size(void *data,
|
||||
unsigned *width, unsigned *height)
|
||||
{
|
||||
unsigned ident = g_extern.console.screen.resolutions.current.id;
|
||||
if (!width || !height)
|
||||
return;
|
||||
|
||||
CellVideoOutResolution resolution;
|
||||
cellVideoOutGetResolution(resolution_id, &resolution);
|
||||
cellVideoOutGetResolution(ident, &resolution);
|
||||
|
||||
*width = resolution.width;
|
||||
*height = resolution.height;
|
||||
@ -270,8 +271,8 @@ static bool gfx_ctx_ps3_init(void *data)
|
||||
if (g_extern.console.screen.resolutions.current.id)
|
||||
{
|
||||
params.enable |= PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT;
|
||||
params.width = gfx_ctx_ps3_get_resolution_width(g_extern.console.screen.resolutions.current.id);
|
||||
params.height = gfx_ctx_ps3_get_resolution_height(g_extern.console.screen.resolutions.current.id);
|
||||
|
||||
gfx_ctx_ps3_get_video_output_size(data, ¶ms.width, ¶ms.height);
|
||||
g_extern.console.screen.pal_enable = false;
|
||||
|
||||
if (params.width == 720 && params.height == 576)
|
||||
|
@ -5045,14 +5045,16 @@ static void menu_action_setting_disp_set_label_menu_video_resolution(
|
||||
menu_gx_resolutions[menu_current_gx_resolution][0],
|
||||
menu_gx_resolutions[menu_current_gx_resolution][1],
|
||||
menu_gx_resolutions[menu_current_gx_resolution][1] > 300 ? 'i' : 'p');
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
width = gfx_ctx_get_resolution_width(
|
||||
g_extern.console.screen.resolutions.list
|
||||
[g_extern.console.screen.resolutions.current.idx]);
|
||||
height = gfx_ctx_get_resolution_height(
|
||||
g_extern.console.screen.resolutions.list
|
||||
[g_extern.console.screen.resolutions.current.idx]);
|
||||
snprintf(type_str, type_str_size, "%ux%u", width, height);
|
||||
#else
|
||||
if (driver.video_data && driver.video_poke &&
|
||||
driver.video_poke->get_video_output_size)
|
||||
{
|
||||
driver.video_poke->get_video_output_size(driver.video_data,
|
||||
&width, &height);
|
||||
snprintf(type_str, type_str_size, "%ux%u", width, height);
|
||||
}
|
||||
else
|
||||
strlcpy(type_str, "N/A", type_str_size);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user