diff options
author | frosch <frosch@openttd.org> | 2015-04-25 11:58:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-04-25 11:58:19 +0000 |
commit | 9fb56ca02e7e8122f57b73652c1b6734b3b45708 (patch) | |
tree | 0045b4d6cf342a109cf72ec4577824f43bcc862b /src/viewport_type.h | |
parent | 93d7db0b3608c7c081f8d291db6b8e93c942eb6e (diff) | |
download | openttd-9fb56ca02e7e8122f57b73652c1b6734b3b45708.tar.xz |
(svn r27248) -Fix [FS#6257]: Town labels on smallmap and zoomed-out viewports were not centered. (_dp_)
Diffstat (limited to 'src/viewport_type.h')
-rw-r--r-- | src/viewport_type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/viewport_type.h b/src/viewport_type.h index 800c8b495..07485c324 100644 --- a/src/viewport_type.h +++ b/src/viewport_type.h @@ -14,6 +14,7 @@ #include "zoom_type.h" #include "strings_type.h" +#include "table/strings.h" class LinkGraphOverlay; @@ -50,7 +51,7 @@ struct ViewportSign { uint16 width_normal; ///< The width when not zoomed out (normal font) uint16 width_small; ///< The width when zoomed out (small font) - void UpdatePosition(int center, int top, StringID str); + void UpdatePosition(int center, int top, StringID str, StringID str_small = STR_NULL); void MarkDirty(ZoomLevel maxzoom = ZOOM_LVL_MAX) const; }; |