GPU: Fix incorrect bit check in DrawMode::IsUsingPalette()
Fixes Sony Computer Entertainment fade in the NTSC-J BIOS.
This commit is contained in:
parent
0f7365117b
commit
bd542831a8
|
@ -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<u8>(mode_reg.texture_mode.GetValue()) &
|
||||
(static_cast<u8>(TextureMode::Palette4Bit) | static_cast<u8>(TextureMode::Palette8Bit))) != 0;
|
||||
}
|
||||
bool IsUsingPalette() const { return (mode_reg.bits & (2 << 7)) == 0; }
|
||||
|
||||
/// Returns a rectangle comprising the texture page area.
|
||||
Common::Rectangle<u32> GetTexturePageRectangle() const
|
||||
|
|
Loading…
Reference in New Issue