From 846477a98b288dcd41b557bd2dbba2cfca8599e9 Mon Sep 17 00:00:00 2001 From: Daniele Cattaneo Date: Tue, 31 Dec 2019 00:36:56 +0100 Subject: [PATCH] Fix 256x480 and 512x480 resolutions. --- BSNESGameCore.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BSNESGameCore.mm b/BSNESGameCore.mm index f4fcfac..26ea91c 100644 --- a/BSNESGameCore.mm +++ b/BSNESGameCore.mm @@ -212,7 +212,12 @@ - (OEIntSize)aspectSize { - return OEIntSizeMake(256 * (8.0/7.0), screenRect.size.height); + if (!(program->overscan)) { + /* Overscan hiding removes the top and bottom 8 pixels. + * This fraction is equivalent to (256 * 8 / 7) / 224 */ + return OEIntSizeMake(64, 49); + } + return OEIntSizeMake(8, 7); } - (GLenum)pixelFormat