From eb109be5673e45f4503712997711c86266fc17b9 Mon Sep 17 00:00:00 2001 From: mudlord Date: Mon, 3 Dec 2007 20:55:18 +0000 Subject: [PATCH] Border fix for GB ROMs git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@155 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gb/GB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/GB.cpp b/src/gb/GB.cpp index 2606b39d..02584c00 100644 --- a/src/gb/GB.cpp +++ b/src/gb/GB.cpp @@ -2129,7 +2129,7 @@ void gbGetHardwareType() { gbCgbMode = 0; gbSgbMode = 0; - if(gbRom[0x143] & 0x80) { + if((gbRom[0x143] & 0x80) && !((gbRom[0x146] == 0x03) && (gbBorderAutomatic))) { if((gbEmulatorType == 0) || gbEmulatorType == 1 || gbEmulatorType == 4) {