1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-13 11:40:38 +02:00

fix layer problem

This commit is contained in:
Laserlicht 2023-09-23 23:44:12 +02:00 committed by GitHub
parent 1f2ca138dd
commit e69b91fbdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,12 @@ std::shared_ptr<CIntObject> CMenuScreen::createTab(size_t index)
void CMenuScreen::show(Canvas & to)
{
if(!config["video"].isNull())
{
CCS->videoh->update((int)config["video"]["x"].Float() + pos.x, (int)config["video"]["y"].Float() + pos.y, to.getInternalSurface(), true, false);
tabs->setRedrawParent(false);
tabs->redraw();
tabs->setRedrawParent(true);
}
CIntObject::show(to);
}