From 186036229cc8052fb8e10e3b848cf2c451b76379 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 17 Jul 2005 19:23:18 +0000 Subject: (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. --- gfx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx.h') diff --git a/gfx.h b/gfx.h index 4a2de34e7..331c56e15 100644 --- a/gfx.h +++ b/gfx.h @@ -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); -- cgit v1.2.3-54-g00ecf