diff options
Diffstat (limited to 'graphics/pixelformat.h')
-rw-r--r-- | graphics/pixelformat.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h index 6b22a14142..af964b0ee1 100644 --- a/graphics/pixelformat.h +++ b/graphics/pixelformat.h @@ -149,8 +149,14 @@ struct PixelFormat { byte RBits, byte GBits, byte BBits, byte ABits, byte RShift, byte GShift, byte BShift, byte AShift) { bytesPerPixel = BytesPerPixel; - rLoss = 8 - RBits, gLoss = 8 - GBits, bLoss = 8 - BBits, aLoss = 8 - ABits; - rShift = RShift, gShift = GShift, bShift = BShift, aShift = AShift; + rLoss = 8 - RBits; + gLoss = 8 - GBits; + bLoss = 8 - BBits; + aLoss = 8 - ABits; + rShift = RShift; + gShift = GShift; + bShift = BShift; + aShift = AShift; } static inline PixelFormat createFormatCLUT8() { |