diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 22:46:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 22:46:17 +0000 |
commit | f11300d1f95afd4aef64f994aecaaa5af446bf04 (patch) | |
tree | e1ae57a53d4852b46ae40e594822c459c6ed726a /src/gfx.cpp | |
parent | ce513b46b7d69e2ff53982341b214da07c9a8a1e (diff) | |
download | openttd-f11300d1f95afd4aef64f994aecaaa5af446bf04.tar.xz |
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r-- | src/gfx.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index cff729e96..e4b5af4c0 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -766,32 +766,6 @@ void DrawCharCentered(WChar c, int x, int y, TextColour colour) /** Draw a string at the given coordinates with the given colour. * While drawing the string, parse it in case some formatting is specified, * like new colour, new size or even positionning. - * @param string The string to draw. This is not yet bidi reordered. - * @param x Offset from left side of the screen - * @param y Offset from top side of the screen - * @param colour Colour of the string, see _string_colourmap in - * table/palettes.h or docs/ottd-colourtext-palette.png or the enum TextColour in gfx_type.h - * @param parse_string_also_when_clipped - * By default, always test the available space where to draw the string. - * When in multipline drawing, it would already be done, - * so no need to re-perform the same kind (more or less) of verifications. - * It's not only an optimisation, it's also a way to ensures the string will be parsed - * (as there are certain side effects on global variables, which are important for the next line) - * @return the x-coordinates where the drawing has finished. - * If nothing is drawn, the originally passed x-coordinate is returned - */ -int DoDrawString(const char *string, int x, int y, TextColour colour, bool parse_string_also_when_clipped) -{ - char buffer[DRAW_STRING_BUFFER]; - strecpy(buffer, string, lastof(buffer)); - HandleBiDiAndArabicShapes(buffer, lastof(buffer)); - - return ReallyDoDrawString(buffer, x, y, colour, parse_string_also_when_clipped); -} - -/** Draw a string at the given coordinates with the given colour. - * While drawing the string, parse it in case some formatting is specified, - * like new colour, new size or even positionning. * @param string The string to draw. This is already bidi reordered. * @param x Offset from left side of the screen * @param y Offset from top side of the screen |