summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-09 02:09:47 +0000
committerrubidium <rubidium@openttd.org>2009-02-09 02:09:47 +0000
commit8dae160d0f1065ff40ecddc518b3905820f77f7a (patch)
tree36a060def733fe274859ec2afcbf3478faf2e63c /src/news_gui.cpp
parent861e9cefb3c31f1cab46ddb068af7a3648f45b4a (diff)
downloadopenttd-8dae160d0f1065ff40ecddc518b3905820f77f7a.tar.xz
(svn r15425) -Codechange: some color->colour changes and type safety.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 06273e127..edc04aa6f 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -662,11 +662,11 @@ void ShowLastNewsMessage()
* Draw an unformatted news message truncated to a maximum length. If
* length exceeds maximum length it will be postfixed by '...'
* @param x,y position of the string
- * @param color the color the string will be shown in
+ * @param colour the colour the string will be shown in
* @param *ni NewsItem being printed
* @param maxw maximum width of string in pixels
*/
-static void DrawNewsString(int x, int y, uint16 color, const NewsItem *ni, uint maxw)
+static void DrawNewsString(int x, int y, TextColour colour, const NewsItem *ni, uint maxw)
{
char buffer[512], buffer2[512];
StringID str;
@@ -698,7 +698,7 @@ static void DrawNewsString(int x, int y, uint16 color, const NewsItem *ni, uint
*dest = '\0';
/* Truncate and show string; postfixed by '...' if neccessary */
- DoDrawStringTruncated(buffer2, x, y, color, maxw);
+ DoDrawStringTruncated(buffer2, x, y, colour, maxw);
}