From 543e17f81877f84a81c14ee56c269cc06fc9896d Mon Sep 17 00:00:00 2001 From: ds22x <45218067+ds22x@users.noreply.github.com> Date: Thu, 16 Sep 2021 19:29:22 +0200 Subject: [PATCH] Correct Bitmap Viewport check for Master System Left Border (#388) --- libretro/libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro/libretro.c b/libretro/libretro.c index 3ee1729..546b266 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -2864,7 +2864,7 @@ void retro_run(void) } } - if ((config.left_border != 0) && (reg[0] & 0x20) && (bitmap.viewport.x = 0) && ((system_hw == SYSTEM_MARKIII) || (system_hw & SYSTEM_SMS) || (system_hw == SYSTEM_PBC))) + if ((config.left_border != 0) && (reg[0] & 0x20) && (bitmap.viewport.x == 0) && ((system_hw == SYSTEM_MARKIII) || (system_hw & SYSTEM_SMS) || (system_hw == SYSTEM_PBC))) { bmdoffset = 16; if (config.left_border == 1)