Merge pull request #5054 from danieljg/master

Fix image mirroring in vertical games on the 3ds port (bug #4817)
This commit is contained in:
Twinaphex 2017-06-12 06:41:56 +02:00 committed by GitHub
commit 77cc37743c

View File

@ -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;
}
}