@@ -251,13 +251,13 @@ protected:
if (!this->stations.Sort()) return;
/* Reset name sorter sort cache */
this->last_station = NULL;
/* Set the modified widget dirty */
this->InvalidateWidget(SLW_LIST);
this->SetWidgetDirty(SLW_LIST);
}
public:
CompanyStationsWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
{
this->owner = (Owner)this->window_number;
@@ -966,13 +966,13 @@ struct StationViewWindow : public Window
if (row == 0) return;
for (CargoID c = 0; c < NUM_CARGO; c++) {
if (this->cargo_rows[c] == row) {
ToggleBit(this->cargo, c);
this->InvalidateWidget(SVW_WAITING);
this->SetWidgetDirty(SVW_WAITING);
break;
virtual void OnClick(Point pt, int widget)