(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.

This commit is contained in:
rubidium
2009-03-21 22:22:00 +00:00
parent 89d614deea
commit 2a422e3e95
11 changed files with 22 additions and 51 deletions

View File

@@ -483,32 +483,6 @@ int DrawString(int left, int right, int top, StringID str, TextColour colour, St
return DrawString(left, right, top, buffer, lastof(buffer), colour, align, underline);
}
/**
* Draw string right-aligned.
*
* @param x Right-most x position of the string
* @param y Y position of the string
* @param str String to draw
* @param colour Colour used for drawing the string, see DoDrawString() for details
*/
int DrawStringRightAligned(int x, int y, StringID str, TextColour colour)
{
return DrawString(0, x, y, str, colour, SA_RIGHT, false);
}
/**
* Draw string right-aligned with a line underneath it.
*
* @param x Right-most x position of the string
* @param y Y position of the string
* @param str String to draw
* @param colour Colour used for drawing the string, see DoDrawString() for details
*/
int DrawStringRightAlignedUnderline(int x, int y, StringID str, TextColour colour)
{
return DrawString(0, x, y, str, colour, SA_RIGHT, true);
}
/**
* 'Correct' a string to a maximum length. Longer strings will be cut into
* additional lines at whitespace characters if possible. The string parameter