summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-14 20:54:01 +0000
committerdominik <dominik@openttd.org>2004-12-14 20:54:01 +0000
commitaf9dc1f81786f90e9c4e78dbaf412559699f2f4f (patch)
treefac4c84e745b0bd4dcaad799eecf398665dc5456 /gfx.c
parentb6c74c1c2077ce0c4dcd525890ea739a807f1508 (diff)
downloadopenttd-af9dc1f81786f90e9c4e78dbaf412559699f2f4f.tar.xz
(svn r1091) Fix: Finally station names use 100% the correct color in transparent mode
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx.c b/gfx.c
index 58376e22a..127a22199 100644
--- a/gfx.c
+++ b/gfx.c
@@ -492,7 +492,7 @@ int DoDrawString(const byte *string, int x, int y, uint16 real_color) {
if (color != 0xFF) {
switch_color:;
- if (real_color & 0x100) {
+ if (real_color & IS_PALETTE_COLOR) {
_string_colorremap[1] = color;
_string_colorremap[2] = 215;
} else {
@@ -1976,5 +1976,5 @@ uint16 GetDrawStringPlayerColor(byte player)
// of the player
if (player == OWNER_SPECTATOR || player == OWNER_SPECTATOR - 1)
return 1;
- return (_color_list[_player_colors[player]].window_color_1b) | 0x100;
+ return (_color_list[_player_colors[player]].window_color_1b) | IS_PALETTE_COLOR;
}