Merge pull request #1163 from ggrtk/gpu-tex-palette-reg-y

GPU: Fix GPUTexturePaletteReg y BitField width
This commit is contained in:
Connor McLaughlin 2020-12-08 01:42:10 +10:00 committed by GitHub
commit 7daa169cda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ union GPUTexturePaletteReg
u16 bits; u16 bits;
BitField<u16, u16, 0, 6> x; BitField<u16, u16, 0, 6> x;
BitField<u16, u16, 6, 10> y; BitField<u16, u16, 6, 9> y;
ALWAYS_INLINE u32 GetXBase() const { return static_cast<u32>(x) * 16u; } ALWAYS_INLINE u32 GetXBase() const { return static_cast<u32>(x) * 16u; }
ALWAYS_INLINE u32 GetYBase() const { return static_cast<u32>(y); } ALWAYS_INLINE u32 GetYBase() const { return static_cast<u32>(y); }