diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pixelformat.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h index 380df985d9..d16de51ea7 100644 --- a/graphics/pixelformat.h +++ b/graphics/pixelformat.h @@ -57,16 +57,16 @@ struct PixelFormat { rShift = gShift = bShift = aShift = 0; } - inline PixelFormat(int BytesPerPixel, - int RLoss, int GLoss, int BLoss, int ALoss, - int RShift, int GShift, int BShift, int AShift) { + inline PixelFormat(byte BytesPerPixel, + byte RBits, byte GBits, byte BBits, byte ABits, + byte RShift, byte GShift, byte BShift, byte AShift) { bytesPerPixel = BytesPerPixel; - rLoss = RLoss, gLoss = GLoss, bLoss = BLoss, aLoss = ALoss; + rLoss = 8 - RBits, gLoss = 8 - GBits, bLoss = 8 - BBits, aLoss = 8 - ABits; rShift = RShift, gShift = GShift, bShift = BShift, aShift = AShift; } static inline PixelFormat createFormatCLUT8() { - return PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0); + return PixelFormat(1, 0, 0, 0, 0, 0, 0, 0, 0); } inline bool operator==(const PixelFormat &fmt) const { |