summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-17 10:08:17 +0000
committermaedhros <maedhros@openttd.org>2007-04-17 10:08:17 +0000
commit535f0dae1ea8bf8697421a7924f8e9c092f0cf50 (patch)
treebfc4c041e935ed9f221e6a17a4fc5512aa875191 /src/gfx.cpp
parent9315663258e7c0853a08d5cbec8cc41c2845d00f (diff)
downloadopenttd-535f0dae1ea8bf8697421a7924f8e9c092f0cf50.tar.xz
(svn r9654) -Fix: Add string colours for the DOS palette and use them when playing with the DOS data files.
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 8797c7739..f00ee5361 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -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;
}