mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
Silence MSVC warning about ambiguous usage of CLIP
svn-id: r34296
This commit is contained in:
parent
9691562987
commit
80c47666db
@ -132,7 +132,7 @@ void ScreenEffects::setBlendedPalette(byte *palette, byte *newPalette, int color
|
||||
if (!_screen->isPaletteLocked()) {
|
||||
int32 mulValue = (value * 64) / maxValue;
|
||||
for (int i = 0; i < colorCount * 3; i++)
|
||||
_fxPalette[i] = CLIP(newPalette[i] - (newPalette[i] - palette[i]) * mulValue / 64, 0, 255);
|
||||
_fxPalette[i] = CLIP<int32>(newPalette[i] - (newPalette[i] - palette[i]) * mulValue / 64, 0, 255);
|
||||
_screen->setRGBPalette(_fxPalette, 0, 256);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user