diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 2 | ||||
-rw-r--r-- | graphics/scaler.cpp | 4 | ||||
-rw-r--r-- | graphics/video/dxa_decoder.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index b48dec4a8c..49dc2c0ef0 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -399,7 +399,7 @@ inline void VectorRendererSpec<PixelType>:: blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha) { register int idst = *ptr; register int isrc = color; - + *ptr = (PixelType)( (_redMask & ((idst & _redMask) + ((int)(((int)(isrc & _redMask) - diff --git a/graphics/scaler.cpp b/graphics/scaler.cpp index da84938bc5..11767848ed 100644 --- a/graphics/scaler.cpp +++ b/graphics/scaler.cpp @@ -116,12 +116,12 @@ void InitLUT(Graphics::PixelFormat format) { hqx_low3bits = (7 << format.rShift) | (7 << format.gShift) | (7 << format.bShift), hqx_highbits = format.RGBToColor(255,255,255) ^ hqx_lowbits; - + // FIXME: The following code only does the right thing // if the color order is RGB or BGR, i.e., green is in the middle. hqx_greenMask = format.RGBToColor(0,255,0); hqx_redBlueMask = format.RGBToColor(255,0,255); - + hqx_green_redBlue_Mask = (hqx_greenMask << 16) | hqx_redBlueMask; #endif } diff --git a/graphics/video/dxa_decoder.cpp b/graphics/video/dxa_decoder.cpp index e514050942..827ee0846f 100644 --- a/graphics/video/dxa_decoder.cpp +++ b/graphics/video/dxa_decoder.cpp @@ -155,7 +155,7 @@ bool DXADecoder::loadFile(const char *fileName) { } while (tag != 0); } #endif - + // Read the sound header _soundTag = _fileStream->readUint32BE(); |