mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-26 04:36:56 +00:00
Merge pull request #5054 from danieljg/master
Fix image mirroring in vertical games on the 3ds port (bug #4817)
This commit is contained in:
commit
77cc37743c
@ -100,9 +100,9 @@ static INLINE void ctr_set_screen_coords(ctr_video_t * ctr)
|
||||
}
|
||||
else if (ctr->rotation == 1) /* 90° */
|
||||
{
|
||||
ctr->frame_coords->x1 = ctr->vp.x;
|
||||
ctr->frame_coords->x0 = ctr->vp.x;
|
||||
ctr->frame_coords->y0 = ctr->vp.y;
|
||||
ctr->frame_coords->x0 = ctr->vp.x + ctr->vp.width;
|
||||
ctr->frame_coords->x1 = ctr->vp.x + ctr->vp.width;
|
||||
ctr->frame_coords->y1 = ctr->vp.y + ctr->vp.height;
|
||||
}
|
||||
else if (ctr->rotation == 2) /* 180° */
|
||||
@ -114,9 +114,9 @@ static INLINE void ctr_set_screen_coords(ctr_video_t * ctr)
|
||||
}
|
||||
else /* 270° */
|
||||
{
|
||||
ctr->frame_coords->x0 = ctr->vp.x;
|
||||
ctr->frame_coords->x1 = ctr->vp.x;
|
||||
ctr->frame_coords->y1 = ctr->vp.y;
|
||||
ctr->frame_coords->x1 = ctr->vp.x + ctr->vp.width;
|
||||
ctr->frame_coords->x0 = ctr->vp.x + ctr->vp.width;
|
||||
ctr->frame_coords->y0 = ctr->vp.y + ctr->vp.height;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user