From 22fc07a839c303e043d1acb88c618c4bf6622bd9 Mon Sep 17 00:00:00 2001 From: Daniel Jimenez Date: Sun, 11 Jun 2017 18:12:37 -0700 Subject: [PATCH] Fix mirrored images in vertical games on 3DS (bug #4817) On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: modified: ctr_gfx.c --- gfx/drivers/ctr_gfx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/drivers/ctr_gfx.c b/gfx/drivers/ctr_gfx.c index 9c4ddf5007..5559c6d524 100644 --- a/gfx/drivers/ctr_gfx.c +++ b/gfx/drivers/ctr_gfx.c @@ -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; } }