From 93f3260a981da23710d4f283dfb992ba5706c418 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 31 Jan 2022 21:23:02 -0500 Subject: [PATCH] Bug fix for VROM size needing to be a power of 2. Fixes issue #455 --- src/ines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ines.cpp b/src/ines.cpp index 5c1dffe3..a14b1add 100644 --- a/src/ines.cpp +++ b/src/ines.cpp @@ -786,7 +786,7 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) { VROM_size = uppow2(head.VROM_size | (iNES2?((head.Upper_ROM_VROM_size & 0xF0)<<4):0)); if (!iNES2) { - VROM_size = head.VROM_size; + VROM_size = uppow2(head.VROM_size); } else { if ((head.Upper_ROM_VROM_size & 0xF0) != 0xF0)