From 0e9e1a8dc49e81dec4049629cf3e887a691da7c9 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 13 Mar 2017 13:10:59 -0400 Subject: [PATCH] DS GX: Fix height being off by one --- src/ds/gx/software.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds/gx/software.c b/src/ds/gx/software.c index 119baa4d4..a8b339e13 100644 --- a/src/ds/gx/software.c +++ b/src/ds/gx/software.c @@ -8,7 +8,7 @@ #include #include "gba/renderers/software-private.h" -#define SCREEN_SIZE (DS_VIDEO_VERTICAL_PIXELS << 12) +#define SCREEN_SIZE ((DS_VIDEO_VERTICAL_PIXELS - 1) << 12) DEFINE_VECTOR(DSGXSoftwarePolygonList, struct DSGXSoftwarePolygon); DEFINE_VECTOR(DSGXSoftwareEdgeList, struct DSGXSoftwareEdge);