equal
deleted
inserted
replaced
86 |
86 |
87 /* Don't redraw the window if the widget is invisible or of no-type */ |
87 /* Don't redraw the window if the widget is invisible or of no-type */ |
88 if (wi->type == WWT_EMPTY || IsWidgetHidden(widget_index)) return; |
88 if (wi->type == WWT_EMPTY || IsWidgetHidden(widget_index)) return; |
89 |
89 |
90 SetDirtyBlocks(this->left + wi->left, this->top + wi->top, this->left + wi->right + 1, this->top + wi->bottom + 1); |
90 SetDirtyBlocks(this->left + wi->left, this->top + wi->top, this->left + wi->right + 1, this->top + wi->bottom + 1); |
|
91 } |
|
92 |
|
93 void Window::HandleButtonClick(byte widget) |
|
94 { |
|
95 this->LowerWidget(widget); |
|
96 this->flags4 |= 5 << WF_TIMEOUT_SHL; |
|
97 this->InvalidateWidget(widget); |
91 } |
98 } |
92 |
99 |
93 void HandleButtonClick(Window *w, byte widget) |
100 void HandleButtonClick(Window *w, byte widget) |
94 { |
101 { |
95 w->LowerWidget(widget); |
102 w->LowerWidget(widget); |