(svn r9654) -Fix: Add string colours for the DOS palette and use them when playing with the DOS data files.

This commit is contained in:
maedhros
2007-04-17 10:08:17 +00:00
parent 792339554f
commit 2a32b3b8db
2 changed files with 43 additions and 21 deletions

View File

@@ -652,10 +652,11 @@ int DoDrawString(const char *string, int x, int y, uint16 real_color)
switch_color:;
if (real_color & IS_PALETTE_COLOR) {
_string_colorremap[1] = color;
_string_colorremap[2] = 215;
_string_colorremap[2] = _use_dos_palette ? 1 : 215;
} else {
_string_colorremap[1] = _string_colormap[color].text;
_string_colorremap[2] = _string_colormap[color].shadow;
uint palette = _use_dos_palette ? 1 : 0;
_string_colorremap[1] = _string_colormap[palette][color].text;
_string_colorremap[2] = _string_colormap[palette][color].shadow;
}
_color_remap_ptr = _string_colorremap;
}