mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
fix layer problem
This commit is contained in:
@@ -108,7 +108,12 @@ std::shared_ptr<CIntObject> CMenuScreen::createTab(size_t index)
|
|||||||
void CMenuScreen::show(Canvas & to)
|
void CMenuScreen::show(Canvas & to)
|
||||||
{
|
{
|
||||||
if(!config["video"].isNull())
|
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);
|
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);
|
CIntObject::show(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user