mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
GPU: Fix GPUTexturePaletteReg y BitField width
This commit is contained in:
parent
50273899c6
commit
93f46c142c
|
@ -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); }
|
||||||
|
|
Loading…
Reference in a new issue