(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function

This commit is contained in:
belugas
2007-12-08 01:20:47 +00:00
parent 6fb71047d6
commit 8c89641dbe
10 changed files with 15 additions and 16 deletions

View File

@@ -85,9 +85,9 @@ void Window::RaiseButtons()
uint i;
for (i = 0; i < this->widget_count; i++) {
if (IsWidgetLowered(i)) {
RaiseWidget(i);
InvalidateWidget(i);
if (this->IsWidgetLowered(i)) {
this->RaiseWidget(i);
this->InvalidateWidget(i);
}
}
}
@@ -1041,7 +1041,7 @@ static void DecreaseWindowCounters()
if (w->flags4&WF_TIMEOUT_MASK && !(--w->flags4&WF_TIMEOUT_MASK)) {
CallWindowEventNP(w, WE_TIMEOUT);
if (w->desc_flags & WDF_UNCLICK_BUTTONS) RaiseWindowButtons(w);
if (w->desc_flags & WDF_UNCLICK_BUTTONS) w->RaiseButtons();
}
}
}