File diff r11081:725ce4237987 → r11082:09fb79759019
src/news_gui.cpp
Show inline comments
 
@@ -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,
 

	
 
	*dest = '\0';
 
	/* Truncate and show string; postfixed by '...' if neccessary */
 
	DoDrawStringTruncated(buffer2, x, y, color, maxw);
 
	DoDrawStringTruncated(buffer2, x, y, colour, maxw);
 
}