mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
use showAll
This commit is contained in:
parent
fc50482b43
commit
c676b999e5
@ -292,7 +292,7 @@ int CHighScoreInputScreen::addEntry(std::string text) {
|
||||
void CHighScoreInputScreen::show(Canvas & to)
|
||||
{
|
||||
if(background)
|
||||
background->redraw();
|
||||
background->show(to);
|
||||
|
||||
CCS->videoh->update(pos.x, pos.y, to.getInternalSurface(), true, false,
|
||||
[&]()
|
||||
@ -310,12 +310,9 @@ void CHighScoreInputScreen::show(Canvas & to)
|
||||
});
|
||||
|
||||
if(input)
|
||||
input->redraw();
|
||||
input->showAll(to);
|
||||
for(auto & text : texts)
|
||||
{
|
||||
text->setRedrawParent(false);
|
||||
text->redraw();
|
||||
}
|
||||
text->showAll(to);
|
||||
|
||||
CIntObject::show(to);
|
||||
}
|
||||
|
@ -109,9 +109,9 @@ void CMenuScreen::show(Canvas & to)
|
||||
if(!config["video"].isNull())
|
||||
{
|
||||
// redraw order: background -> video -> buttons and pictures
|
||||
background->redraw();
|
||||
background->showAll(to);
|
||||
CCS->videoh->update((int)config["video"]["x"].Float() + pos.x, (int)config["video"]["y"].Float() + pos.y, to.getInternalSurface(), true, false);
|
||||
tabs->redraw();
|
||||
tabs->showAll(to);
|
||||
}
|
||||
CIntObject::show(to);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user