(svn r11595) -Codechange: add a new member to Window struct, based on its function counterpart HandleButtonClick.

This commit is contained in:
belugas
2007-12-08 02:55:47 +00:00
parent 04f0700357
commit b23f824f18
2 changed files with 9 additions and 0 deletions

View File

@@ -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);