Explorar el Código

fix layer problem

Laserlicht hace 2 años
padre
commit
e69b91fbdd
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      client/mainmenu/CMainMenu.cpp

+ 5 - 0
client/mainmenu/CMainMenu.cpp

@@ -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);
 }