diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 02:09:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 02:09:47 +0000 |
commit | a7693c60592b25873b451cb27d26b8e3763c00d6 (patch) | |
tree | 36a060def733fe274859ec2afcbf3478faf2e63c /src/viewport.cpp | |
parent | 5080feba0d5d5811048f1cece0b76f6396034c49 (diff) | |
download | openttd-a7693c60592b25873b451cb27d26b8e3763c00d6.tar.xz |
(svn r15425) -Codechange: some color->colour changes and type safety.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 579f65205..1cab2da6b 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1418,7 +1418,7 @@ static void ViewportDrawStrings(DrawPixelInfo *dpi, const StringSpriteToDrawVect const StringSpriteToDraw *ssend = sstdv->End(); for (const StringSpriteToDraw *ss = sstdv->Begin(); ss != ssend; ++ss) { - uint16 colour; + TextColour colour; if (ss->width != 0) { /* Do not draw signs nor station names if they are set invisible */ @@ -1453,7 +1453,7 @@ static void ViewportDrawStrings(DrawPixelInfo *dpi, const StringSpriteToDrawVect if (IsTransparencySet(TO_SIGNS) && ss->string != STR_2806 && ss->width != 0) { /* Real colors need the IS_PALETTE_COLOR flag * otherwise colors from _string_colormap are assumed. */ - colour = _colour_gradient[ss->color][6] | IS_PALETTE_COLOR; + colour = (TextColour)_colour_gradient[ss->color][6] | IS_PALETTE_COLOR; } else { colour = TC_BLACK; } |