From cdf751accda346f5d96e3fdfa2fd4a1b92ed4d19 Mon Sep 17 00:00:00 2001 From: Jody Northup Date: Tue, 14 Jul 2009 08:27:36 +0000 Subject: changed generic Graphics::PixelFormat constructor to take xBits instead of xLoss. Modified OSystem_SDL::getSupportedFormats and ScummEngine::init to account for this change. svn-id: r42467 --- graphics/pixelformat.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'graphics/pixelformat.h') 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 { -- cgit v1.2.3