1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

screen surface is now private member of ScreenHandler instead of global

This commit is contained in:
Ivan Savenko
2025-02-10 17:23:20 +00:00
parent 31e627f128
commit eb7587c000
16 changed files with 85 additions and 40 deletions

View File

@@ -15,6 +15,7 @@
#include "EventDispatcher.h"
#include "Shortcut.h"
#include "../render/Canvas.h"
#include "../render/IScreenHandler.h"
#include "../windows/CMessage.h"
#include "../CMT.h"
@@ -238,7 +239,7 @@ void CIntObject::redraw()
}
else
{
Canvas buffer = Canvas::createFromSurface(screen, CanvasScalingPolicy::AUTO);
Canvas buffer = GH.screenHandler().getScreenCanvas();
showAll(buffer);
}
}