1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Remove screen2 and screenBuf global variables

This commit is contained in:
Ivan Savenko
2025-02-10 14:12:23 +00:00
parent 7e1ce095a1
commit 31e627f128
5 changed files with 4 additions and 47 deletions

View File

@@ -238,15 +238,8 @@ void CIntObject::redraw()
}
else
{
Canvas buffer = Canvas::createFromSurface(screenBuf, CanvasScalingPolicy::AUTO);
Canvas buffer = Canvas::createFromSurface(screen, CanvasScalingPolicy::AUTO);
showAll(buffer);
if(screenBuf != screen)
{
Canvas screenBuffer = Canvas::createFromSurface(screen, CanvasScalingPolicy::AUTO);
showAll(screenBuffer);
}
}
}
}