equal
deleted
inserted
replaced
132 InvalidateWidget(i); |
132 InvalidateWidget(i); |
133 } |
133 } |
134 } |
134 } |
135 } |
135 } |
136 |
136 |
137 void Window::InvalidateWidget(byte widget_index) |
137 void Window::InvalidateWidget(byte widget_index) const |
138 { |
138 { |
139 const Widget *wi = &this->widget[widget_index]; |
139 const Widget *wi = &this->widget[widget_index]; |
140 |
140 |
141 /* Don't redraw the window if the widget is invisible or of no-type */ |
141 /* Don't redraw the window if the widget is invisible or of no-type */ |
142 if (wi->type == WWT_EMPTY || IsWidgetHidden(widget_index)) return; |
142 if (wi->type == WWT_EMPTY || IsWidgetHidden(widget_index)) return; |