summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-07 21:23:26 +0000
committerfrosch <frosch@openttd.org>2012-11-07 21:23:26 +0000
commit3e367cd0875b036e51789fb77cfbc9a4af06714f (patch)
tree0f07e4570f35b43579cb606cdb93efc538e612de /src/gfx_func.h
parent28c98de6d9d48afa94fd148dddb6802309b28dec (diff)
downloadopenttd-3e367cd0875b036e51789fb77cfbc9a4af06714f.tar.xz
(svn r24668) -Feature(ette) [FS#5311]: Draw cargo labels in the station list black or white depending on the background colour. (sbr)
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 49d2d35a3..2425a4059 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -177,6 +177,8 @@ static inline byte GetCharacterHeight(FontSize size)
extern DrawPixelInfo *_cur_dpi;
+TextColour GetContrastColour(uint8 background);
+
/**
* All 16 colour gradients
* 8 colours per gradient from darkest (0) to lightest (7)