diff options
author | frosch <frosch@openttd.org> | 2012-11-07 21:23:26 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-07 21:23:26 +0000 |
commit | 3e367cd0875b036e51789fb77cfbc9a4af06714f (patch) | |
tree | 0f07e4570f35b43579cb606cdb93efc538e612de /src/gfx_func.h | |
parent | 28c98de6d9d48afa94fd148dddb6802309b28dec (diff) | |
download | openttd-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.h | 2 |
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) |