From bd542831a8591bfcbbd938bdc0e3ea43a198df36 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 17 Feb 2020 00:09:27 +0900 Subject: [PATCH] GPU: Fix incorrect bit check in DrawMode::IsUsingPalette() Fixes Sony Computer Entertainment fade in the NTSC-J BIOS. --- src/core/gpu.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/gpu.h b/src/core/gpu.h index 4c54d21f1..d0fbd3dd4 100644 --- a/src/core/gpu.h +++ b/src/core/gpu.h @@ -439,11 +439,7 @@ protected: TransparencyMode GetTransparencyMode() const { return mode_reg.transparency_mode; } /// Returns true if the texture mode requires a palette. - bool IsUsingPalette() const - { - return (static_cast(mode_reg.texture_mode.GetValue()) & - (static_cast(TextureMode::Palette4Bit) | static_cast(TextureMode::Palette8Bit))) != 0; - } + bool IsUsingPalette() const { return (mode_reg.bits & (2 << 7)) == 0; } /// Returns a rectangle comprising the texture page area. Common::Rectangle GetTexturePageRectangle() const