diff options
author | rubidium <rubidium@openttd.org> | 2009-07-08 08:50:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-08 08:50:20 +0000 |
commit | 3fb1506d6d71fcc124779f7f4a7ede68d9970636 (patch) | |
tree | 0136a9522a05a038181cc31ec9158339f34adec0 /src/viewport_type.h | |
parent | 8275a98e1f2e5adc770dc68492927416ddbb6fe6 (diff) | |
download | openttd-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.h | 8 |
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; |