Calculate 1:1 PAR from right dimensions.

Frame cache can be stale or have awkward dimensions which
don't really reflect 1:1 PAR semantics.
This commit is contained in:
Themaister 2013-06-05 21:29:52 +02:00
parent 347fdaadce
commit 321ffcbca6
3 changed files with 3 additions and 3 deletions

View File

@ -1396,7 +1396,7 @@ static void d3d9_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
switch (aspect_ratio_idx)
{
case ASPECT_RATIO_SQUARE:
gfx_set_square_pixel_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
gfx_set_square_pixel_viewport(g_system.system.av_info.geometry.base_width, g_extern.system.av_info.geometry.base_height);
break;
case ASPECT_RATIO_CORE:

View File

@ -2400,7 +2400,7 @@ static void gl_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
switch (aspect_ratio_idx)
{
case ASPECT_RATIO_SQUARE:
gfx_set_square_pixel_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
gfx_set_square_pixel_viewport(g_extern.system.av_info.geometry.base_width, g_extern.system.av_info.geometry.base_height);
break;
case ASPECT_RATIO_CORE:

View File

@ -286,7 +286,7 @@ static void gx_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
gx_video_t *gx = (gx_video_t*)driver.video_data;
if (aspect_ratio_idx == ASPECT_RATIO_SQUARE)
gfx_set_square_pixel_viewport(g_extern.frame_cache.width, g_extern.frame_cache.height);
gfx_set_square_pixel_viewport(g_extern.system.av_info.geometry.base_width, g_extern.system.av_info.geometry.base_height);
else if (aspect_ratio_idx == ASPECT_RATIO_CORE)
gfx_set_core_viewport();
else if (aspect_ratio_idx == ASPECT_RATIO_CONFIG)