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 | 0550c4a87a4d9dc1fb3536234ad1f23621123e95 (patch) | |
tree | 9376c9d570e22b44516c49ab07ce3e375c97c948 /gfx.h | |
parent | 52b42ff5081f25da96f70d7f16705e71e691216e (diff) | |
download | openttd-0550c4a87a4d9dc1fb3536234ad1f23621123e95.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); |