Fix compilation errors after the merge

This commit is contained in:
dP
2025-06-27 18:03:03 +05:00
parent f0f93c68ca
commit 0fe7c3635c
85 changed files with 1926 additions and 1971 deletions

View File

@@ -11,6 +11,7 @@
#include "core/backup_type.hpp"
#include "company_func.h"
#include "strings_type.h"
#include "widget_type.h"
#include "window_gui.h"
#include "viewport_func.h"
#include "zoom_func.h"
@@ -906,7 +907,7 @@ static void DrawOutline(const Window *, const NWidgetBase *wid)
void NWidgetBase::SetDirty(Window *w)
{
this->base_flags |= WBF_DIRTY;
w->flags |= WF_WIDGETS_DIRTY;
w->flags.Set(WindowFlag::CMWidgetsDirty);
}
/**
@@ -2496,7 +2497,7 @@ void NWidgetViewport::Draw(const Window *w)
void NWidgetViewport::InitializeViewport(Window *w, std::variant<TileIndex, VehicleID> focus, ZoomLevel zoom)
{
InitializeWindowViewport(w, this->pos_x, this->pos_y, this->current_x, this->current_y, focus, zoom);
w->viewport_widget = this;
w->cm_viewport_widget = this;
}
/**