Skip to content

Commit

Permalink
SCI: Amended fix for palette related compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Nov 26, 2012
1 parent 9c510c1 commit 77a9f01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/sci/graphics/palette.cpp
Expand Up @@ -386,9 +386,9 @@ void GfxPalette::setRemappingPercentGray(byte color, byte percent) {

// Note: This is not what the original does, but the results are the same visually
for (int i = 0; i < 256; i++) {
byte rComponent = (byte)_sysPalette.colors[i].r * _remappingPercentToSet * 0.30 / 100;
byte gComponent = (byte)_sysPalette.colors[i].g * _remappingPercentToSet * 0.59 / 100;
byte bComponent = (byte)_sysPalette.colors[i].b * _remappingPercentToSet * 0.11 / 100;
byte rComponent = (byte)(_sysPalette.colors[i].r * _remappingPercentToSet * 0.30 / 100);
byte gComponent = (byte)(_sysPalette.colors[i].g * _remappingPercentToSet * 0.59 / 100);
byte bComponent = (byte)(_sysPalette.colors[i].b * _remappingPercentToSet * 0.11 / 100);
byte luminosity = rComponent + gComponent + bComponent;
_remappingByPercent[i] = kernelFindColor(luminosity, luminosity, luminosity);
}
Expand Down

0 comments on commit 77a9f01

Please sign in to comment.