From d36dcacb60e23bca2d0137d72d413df8c9818db8 Mon Sep 17 00:00:00 2001 From: Daniele Cattaneo Date: Fri, 3 Jan 2020 18:31:46 +0100 Subject: [PATCH] Initialize screenRect with the most common resolution. Fixes an issue where the core display would be scaled to the wrong size on launch in a separate window. --- BSNESGameCore.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/BSNESGameCore.mm b/BSNESGameCore.mm index 99114ef..0d278c8 100644 --- a/BSNESGameCore.mm +++ b/BSNESGameCore.mm @@ -54,6 +54,7 @@ program = new Program(self); _activeCheats = [[NSMutableSet alloc] init]; _displayModes = [[NSMutableDictionary alloc] init]; + screenRect = OEIntRectMake(0, 0, 256, 224); return self; }