Merge pull request #1192 from aliaspider/master

(PSP) small fixes
This commit is contained in:
Twinaphex 2014-10-25 00:54:30 +02:00
commit c5f5c5f259
2 changed files with 6 additions and 1 deletions

View File

@ -428,6 +428,8 @@ static const bool aspect_ratio_auto = false;
#if defined(__CELLOS_LV2) || defined(_XBOX360)
static unsigned aspect_ratio_idx = ASPECT_RATIO_16_9;
#elif defined(PSP)
static unsigned aspect_ratio_idx = ASPECT_RATIO_CORE;
#elif defined(RARCH_CONSOLE)
static unsigned aspect_ratio_idx = ASPECT_RATIO_4_3;
#else

View File

@ -716,7 +716,7 @@ static void psp_update_viewport(psp1_video_t* psp)
#endif
{
if ((fabsf(device_aspect - desired_aspect) < 0.0001f)
|| (fabsf((16.0/9.0) - desired_aspect) < 0.0001f))
|| (fabsf((16.0/9.0) - desired_aspect) < 0.02f))
{
/* If the aspect ratios of screen and desired aspect
* ratio are sufficiently equal (floating point stuff),
@ -751,6 +751,9 @@ static void psp_update_viewport(psp1_video_t* psp)
psp->vp.height = height;
}
psp->vp.width += psp->vp.width&0x1;
psp->vp.height += psp->vp.height&0x1;
psp_set_screen_coords(psp->frame_coords, psp->vp.x,
psp->vp.y, psp->vp.width, psp->vp.height, psp->rotation);