From 4621ed7dcc9d9f5cc0781a51e4464f2af89cf8cb Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Tue, 20 Jul 2021 18:51:53 +1000 Subject: [PATCH] (Wii U) Display scissor doesn't use inverted coordinates Unlike the draw callback, seems the scissor callback does *not* have an inverted y-coordinate. Yay! --- gfx/drivers_display/gfx_display_wiiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_display/gfx_display_wiiu.c b/gfx/drivers_display/gfx_display_wiiu.c index b11870c322..0abcd6b75e 100644 --- a/gfx/drivers_display/gfx_display_wiiu.c +++ b/gfx/drivers_display/gfx_display_wiiu.c @@ -283,7 +283,7 @@ static void gfx_display_wiiu_scissor_begin( int x, int y, unsigned width, unsigned height) { - GX2SetScissor(MAX(x, 0), MAX(video_height - y - height, 0), MIN(width, video_width), MIN(height, video_height)); + GX2SetScissor(MAX(x, 0), MAX(y, 0), MIN(width, video_width), MIN(height, video_height)); } static void gfx_display_wiiu_scissor_end(