forked from mirror/OpenTTD
(svn r15425) -Codechange: some color->colour changes and type safety.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user