diff options
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index e5628a3de..e64575301 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -90,6 +90,13 @@ void Window::InvalidateWidget(byte widget_index) const SetDirtyBlocks(this->left + wi->left, this->top + wi->top, this->left + wi->right + 1, this->top + wi->bottom + 1); } +void Window::HandleButtonClick(byte widget) +{ + this->LowerWidget(widget); + this->flags4 |= 5 << WF_TIMEOUT_SHL; + this->InvalidateWidget(widget); +} + void HandleButtonClick(Window *w, byte widget) { w->LowerWidget(widget); |