diff options
author | peter1138 <peter1138@openttd.org> | 2012-12-25 22:10:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2012-12-25 22:10:43 +0000 |
commit | 1ef4f7712dec1142a4ff35f8a59f649a5643156c (patch) | |
tree | fea1ad652b7950220c60eb0914224214e82d942b /src/widget.cpp | |
parent | 629efeedb42aab1d679ac0723a1342b03c05af73 (diff) | |
download | openttd-1ef4f7712dec1142a4ff35f8a59f649a5643156c.tar.xz |
(svn r24853) -Fix: Extend widget data member to 32 bits so that sprite IDs >= 2^16 can be used.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index df001815b..6ebb5b17b 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -822,7 +822,7 @@ void NWidgetResizeBase::AssignSizePosition(SizingType sizing, uint x, uint y, ui * @param widget_data Data component of the widget. @see Widget::data * @param tool_tip Tool tip of the widget. @see Widget::tootips */ -NWidgetCore::NWidgetCore(WidgetType tp, Colours colour, uint fill_x, uint fill_y, uint16 widget_data, StringID tool_tip) : NWidgetResizeBase(tp, fill_x, fill_y) +NWidgetCore::NWidgetCore(WidgetType tp, Colours colour, uint fill_x, uint fill_y, uint32 widget_data, StringID tool_tip) : NWidgetResizeBase(tp, fill_x, fill_y) { this->colour = colour; this->index = -1; @@ -846,7 +846,7 @@ void NWidgetCore::SetIndex(int index) * @param widget_data Data to use. * @param tool_tip Tool tip string to use. */ -void NWidgetCore::SetDataTip(uint16 widget_data, StringID tool_tip) +void NWidgetCore::SetDataTip(uint32 widget_data, StringID tool_tip) { this->widget_data = widget_data; this->tool_tip = tool_tip; |