mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
Silenced MSVC warning (MSVC is being silly here...)
svn-id: r36185
This commit is contained in:
parent
574a7924df
commit
f1ebbebd7b
@ -393,6 +393,7 @@ inline void VectorRendererSpec<PixelType, PixelFormat>::
|
||||
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))));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user