diff options
author | rubidium <rubidium@openttd.org> | 2009-12-22 12:50:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-22 12:50:41 +0000 |
commit | b0603f4c2e3df439091e6dafb5063619b4a231c4 (patch) | |
tree | 92e39aa29a1f2af1afb3f48a34e6d6fb795e95ec /src/viewport_type.h | |
parent | 96a8a0f34da838df85a683d87870822288ad36f6 (diff) | |
download | openttd-b0603f4c2e3df439091e6dafb5063619b4a231c4.tar.xz |
(svn r18602) -Codechange: unify the viewport sign and text effect drawing
-Fix [FS#3394]: signs could occasionally glitch
Diffstat (limited to 'src/viewport_type.h')
-rw-r--r-- | src/viewport_type.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/viewport_type.h b/src/viewport_type.h index 57ff96993..0eb9d78e8 100644 --- a/src/viewport_type.h +++ b/src/viewport_type.h @@ -32,10 +32,18 @@ struct ViewPort { ZoomLevel zoom; }; +/** Margings for the viewport sign */ +enum ViewportSignMargin { + VPSM_LEFT = 1, ///< Left margin + VPSM_RIGHT = 1, ///< Right margin + VPSM_TOP = 1, ///< Top margin + VPSM_BOTTOM = 1, ///< Bottom margin +}; + /** Location information about a sign as seen on the viewport */ struct ViewportSign { - int32 left; ///< The left most position of the sign - int32 top; ///< THe top of the sign + int32 center; ///< The center position of the sign + int32 top; ///< The top of the sign uint16 width_normal; ///< The width when not zoomed out (normal font) uint16 width_small; ///< The width when zoomed out (small font) |