diff options
author | Darkvater <Darkvater@openttd.org> | 2005-07-17 19:23:18 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-07-17 19:23:18 +0000 |
commit | 186036229cc8052fb8e10e3b848cf2c451b76379 (patch) | |
tree | 9376c9d570e22b44516c49ab07ce3e375c97c948 /gfx.h | |
parent | b998b9b8e6abb8baf6229057370edebb8307b30b (diff) | |
download | openttd-186036229cc8052fb8e10e3b848cf2c451b76379.tar.xz |
(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. Instead of giving center + width you give the coordinates of the bounding box (left, right) it has to fit in (ludde)
- CodeChange: changed (back) maximum pixel length of truncated strings to a signed integer.
Diffstat (limited to 'gfx.h')
-rw-r--r-- | gfx.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ void RedrawScreenRect(int left, int top, int right, int bottom); void GfxScroll(int left, int top, int width, int height, int xo, int yo); int DrawStringCentered(int x, int y, StringID str, uint16 color); -int DrawStringCenteredTruncated(int x, int y, StringID str, uint16 color, uint maxw); +int DrawStringCenteredTruncated(int xl, int xr, int y, StringID str, uint16 color); int DrawString(int x, int y, StringID str, uint16 color); int DrawStringTruncated(int x, int y, StringID str, uint16 color, uint maxw); @@ -46,7 +46,7 @@ int DoDrawString(const char *string, int x, int y, uint16 color); int DoDrawStringTruncated(const char *str, int x, int y, uint16 color, uint maxw); void DrawStringCenterUnderline(int x, int y, StringID str, uint16 color); -void DrawStringCenterUnderlineTruncated(int x, int y, StringID str, uint16 color, uint maxw); +void DrawStringCenterUnderlineTruncated(int xl, int xr, int y, StringID str, uint16 color); void DrawStringRightAligned(int x, int y, StringID str, uint16 color); void DrawStringRightAlignedTruncated(int x, int y, StringID str, uint16 color, uint maxw); |