From c676b999e59fd417db739bd2ac4ee842f543e0c2 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 18 May 2024 20:21:47 +0200 Subject: [PATCH] use showAll --- client/mainmenu/CHighScoreScreen.cpp | 9 +++------ client/mainmenu/CMainMenu.cpp | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/client/mainmenu/CHighScoreScreen.cpp b/client/mainmenu/CHighScoreScreen.cpp index f26c3fd78..afd0087d6 100644 --- a/client/mainmenu/CHighScoreScreen.cpp +++ b/client/mainmenu/CHighScoreScreen.cpp @@ -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); } diff --git a/client/mainmenu/CMainMenu.cpp b/client/mainmenu/CMainMenu.cpp index 12b44298f..a87314a69 100644 --- a/client/mainmenu/CMainMenu.cpp +++ b/client/mainmenu/CMainMenu.cpp @@ -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); }