From f1ebbebd7b8f7aa62256b08d73086df2f6b5cb28 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 1 Feb 2009 20:52:53 +0000 Subject: Silenced MSVC warning (MSVC is being silly here...) svn-id: r36185 --- graphics/VectorRendererSpec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'graphics/VectorRendererSpec.cpp') diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index ac21203da1..62bd560909 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -393,6 +393,7 @@ inline void VectorRendererSpec:: blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha) { register int idst = *ptr; register int isrc = color; + int rightShift = 8 - PixelFormat::kAlphaBits; *ptr = (PixelType)( (PixelFormat::kRedMask & ((idst & PixelFormat::kRedMask) + @@ -405,7 +406,7 @@ blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha) { ((int)(((int)(isrc & PixelFormat::kBlueMask) - (int)(idst & PixelFormat::kBlueMask)) * alpha) >> 8))) | (PixelFormat::kAlphaMask & ((idst & PixelFormat::kAlphaMask) + - ((alpha >> (8 - PixelFormat::kAlphaBits)) << PixelFormat::kAlphaShift) - + ((alpha >> rightShift) << PixelFormat::kAlphaShift) - (((int)(idst & PixelFormat::kAlphaMask) * alpha) >> 8)))); } -- cgit v1.2.3