(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.

This commit is contained in:
frosch
2009-09-13 19:15:59 +00:00
parent 9a0a14f4a8
commit 0e36260337
61 changed files with 323 additions and 323 deletions

View File

@@ -726,7 +726,7 @@ struct DepotWindow : Window {
break;
case DEPOT_WIDGET_CLONE: // Clone button
this->InvalidateWidget(DEPOT_WIDGET_CLONE);
this->SetWidgetDirty(DEPOT_WIDGET_CLONE);
this->ToggleWidgetLoweredState(DEPOT_WIDGET_CLONE);
if (this->IsWidgetLowered(DEPOT_WIDGET_CLONE)) {
@@ -850,11 +850,11 @@ struct DepotWindow : Window {
{
/* abort clone */
this->RaiseWidget(DEPOT_WIDGET_CLONE);
this->InvalidateWidget(DEPOT_WIDGET_CLONE);
this->SetWidgetDirty(DEPOT_WIDGET_CLONE);
/* abort drag & drop */
this->sel = INVALID_VEHICLE;
this->InvalidateWidget(DEPOT_WIDGET_MATRIX);
this->SetWidgetDirty(DEPOT_WIDGET_MATRIX);
};
/* check if a vehicle in a depot was clicked.. */
@@ -935,11 +935,11 @@ struct DepotWindow : Window {
{
if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL)) {
this->RaiseWidget(DEPOT_WIDGET_SELL);
this->InvalidateWidget(DEPOT_WIDGET_SELL);
this->SetWidgetDirty(DEPOT_WIDGET_SELL);
}
if (!this->IsWidgetDisabled(DEPOT_WIDGET_SELL_CHAIN)) {
this->RaiseWidget(DEPOT_WIDGET_SELL_CHAIN);
this->InvalidateWidget(DEPOT_WIDGET_SELL_CHAIN);
this->SetWidgetDirty(DEPOT_WIDGET_SELL_CHAIN);
}
}
@@ -955,7 +955,7 @@ struct DepotWindow : Window {
{
if (this->sel != INVALID_VEHICLE) {
_cursor.vehchain = _ctrl_pressed;
this->InvalidateWidget(DEPOT_WIDGET_MATRIX);
this->SetWidgetDirty(DEPOT_WIDGET_MATRIX);
return ES_HANDLED;
}