summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-06-27 11:45:05 +0000
committeralberth <alberth@openttd.org>2009-06-27 11:45:05 +0000
commit996e5eea471f740428f2878884363521200d6ca1 (patch)
tree85b57ba6d51e6c778938e52b73720ad2cae9d7e8 /src/gfx_func.h
parent9489490e482917a76a1675fa70fa5457565e5ca7 (diff)
downloadopenttd-996e5eea471f740428f2878884363521200d6ca1.tar.xz
(svn r16672) -Codechange: Add functions to compute size of strings and sprites.
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index 70286ee69..6a1af6d00 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -83,6 +83,7 @@ enum {
void RedrawScreenRect(int left, int top, int right, int bottom);
void GfxScroll(int left, int top, int width, int height, int xo, int yo);
+Dimension GetSpriteSize(SpriteID sprid);
void DrawSprite(SpriteID img, SpriteID pal, int x, int y, const SubSprite *sub = NULL);
/** How to align the to-be drawn text. */
@@ -106,6 +107,7 @@ void GfxDrawLine(int left, int top, int right, int bottom, int colour);
void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3);
Dimension GetStringBoundingBox(const char *str);
+Dimension GetStringBoundingBox(StringID strid);
uint32 FormatStringLinebreaks(char *str, int maxw);
int GetStringHeight(StringID str, int maxw);
void LoadStringWidthTable();