summaryrefslogtreecommitdiff
path: root/src/viewport_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-08 08:50:20 +0000
committerrubidium <rubidium@openttd.org>2009-07-08 08:50:20 +0000
commit3fb1506d6d71fcc124779f7f4a7ede68d9970636 (patch)
tree0136a9522a05a038181cc31ec9158339f34adec0 /src/viewport_type.h
parent8275a98e1f2e5adc770dc68492927416ddbb6fe6 (diff)
downloadopenttd-3fb1506d6d71fcc124779f7f4a7ede68d9970636.tar.xz
(svn r16765) -Codechange: give ViewportSign's width_1 and width_2 more self explaining names
Diffstat (limited to 'src/viewport_type.h')
-rw-r--r--src/viewport_type.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/viewport_type.h b/src/viewport_type.h
index 39235ed19..dd7cd8a7f 100644
--- a/src/viewport_type.h
+++ b/src/viewport_type.h
@@ -25,10 +25,12 @@ struct ViewPort {
ZoomLevel zoom;
};
+/** Location information about a sign as seen on the viewport */
struct ViewportSign {
- int32 left;
- int32 top;
- uint16 width_1, width_2;
+ int32 left; ///< The left most 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)
void UpdatePosition(int center, int top, StringID str);
void MarkDirty() const;