From 5a554e3dbe3e9ad3375e43125ec79b07366f4827 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 17 Nov 2010 12:13:03 +0000 Subject: SCI: Change 'colour' to 'color' All other instances already were spelled 'color' in the SCI engine (and also most other parts of ScummVM) svn-id: r54285 --- engines/sci/graphics/palette.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sci/graphics/palette.cpp') diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp index f5689a956d..a0b1323eb3 100644 --- a/engines/sci/graphics/palette.cpp +++ b/engines/sci/graphics/palette.cpp @@ -192,7 +192,7 @@ void GfxPalette::modifyAmigaPalette(byte *data) { _screen->setPalette(&_sysPalette); } -static byte blendColours(byte c1, byte c2) { +static byte blendColors(byte c1, byte c2) { // linear // return (c1/2+c2/2)+((c1&1)+(c2&1))/2; @@ -230,9 +230,9 @@ void GfxPalette::setEGA() { _sysPalette.colors[curColor].used = 1; color1 = curColor & 0x0F; color2 = curColor >> 4; - _sysPalette.colors[curColor].r = blendColours(_sysPalette.colors[color1].r, _sysPalette.colors[color2].r); - _sysPalette.colors[curColor].g = blendColours(_sysPalette.colors[color1].g, _sysPalette.colors[color2].g); - _sysPalette.colors[curColor].b = blendColours(_sysPalette.colors[color1].b, _sysPalette.colors[color2].b); + _sysPalette.colors[curColor].r = blendColors(_sysPalette.colors[color1].r, _sysPalette.colors[color2].r); + _sysPalette.colors[curColor].g = blendColors(_sysPalette.colors[color1].g, _sysPalette.colors[color2].g); + _sysPalette.colors[curColor].b = blendColors(_sysPalette.colors[color1].b, _sysPalette.colors[color2].b); } _sysPalette.timestamp = 1; setOnScreen(); -- cgit v1.2.3