summaryrefslogtreecommitdiff
path: root/gfx.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-10 07:38:03 +0000
committertron <tron@openttd.org>2005-09-10 07:38:03 +0000
commit0fe36a6900b135361a3f01b36a00d8ad6acac8bc (patch)
treed2a18359b544bdb53c4ea4482b8aa03f378c802a /gfx.h
parent04f051e423757c59af90b0727db6efdec3e18af5 (diff)
downloadopenttd-0fe36a6900b135361a3f01b36a00d8ad6acac8bc.tar.xz
(svn r2932) Give the strings consisting of an up/a down arrow symbolic names
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx.h b/gfx.h
index 44111da1e..d0568a78d 100644
--- a/gfx.h
+++ b/gfx.h
@@ -38,6 +38,13 @@ typedef struct CursorVars {
void RedrawScreenRect(int left, int top, int right, int bottom);
void GfxScroll(int left, int top, int width, int height, int xo, int yo);
+
+// XXX doesn't really belong here, but the only
+// consumers always use it in conjunction with DoDrawString()
+#define UPARROW "\xA0"
+#define DOWNARROW "\xAA"
+
+
int DrawStringCentered(int x, int y, StringID str, uint16 color);
int DrawStringCenteredTruncated(int xl, int xr, int y, StringID str, uint16 color);
int DoDrawStringCentered(int x, int y, const char *str, uint16 color);