mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 23:01:58 +00:00
TSAGE: Cleaner bugfix for text colours being incorrect
This commit is contained in:
parent
1eb75f7892
commit
3fee10eb60
@ -791,7 +791,6 @@ Speaker::Speaker() : EventHandler() {
|
||||
_fontNumber = 2;
|
||||
_textMode = ALIGN_LEFT;
|
||||
_color1 = _color2 = _color3 = _globals->_scenePalette._colors.foreground;
|
||||
_color2 = _color3 = 0;
|
||||
_action = NULL;
|
||||
_speakerName = "SPEAKER";
|
||||
}
|
||||
|
@ -1300,7 +1300,7 @@ uint8 ScenePalette::indexOf(uint r, uint g, uint b, int threshold) {
|
||||
int bDiff = abs(ib - (int)b);
|
||||
|
||||
int idxThreshold = rDiff * rDiff + gDiff * gDiff + bDiff * bDiff;
|
||||
if (idxThreshold <= threshold) {
|
||||
if (idxThreshold < threshold) {
|
||||
threshold = idxThreshold;
|
||||
palIndex = i;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user