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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user