mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
fix custom aspect ratios for non-ydown drivers
This commit is contained in:
parent
6701c0999b
commit
7e26eb37c6
@ -2061,9 +2061,12 @@ void video_viewport_get_scaled_aspect2(struct video_viewport *vp, unsigned viewp
|
||||
{
|
||||
video_viewport_t *custom_vp = &settings->video_viewport_custom;
|
||||
x = custom_vp->x;
|
||||
y = custom_vp->y - custom_vp->height;
|
||||
y = custom_vp->y;
|
||||
if (!ydown)
|
||||
{
|
||||
y = y + custom_vp->height;
|
||||
y = vp->full_height - y;
|
||||
}
|
||||
viewport_width = custom_vp->width;
|
||||
viewport_height = custom_vp->height;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user