mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
(PSP) disallow odd values for viewport width/height.
This commit is contained in:
parent
6ceb469c9c
commit
8d573e9d44
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user