mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 22:13:17 +00:00
Fix HUD buttons drawing too early (fixes #8648)
Fixup for f79b38a1af0f317a4b5882f7c66f9e3bef6927bf.
This commit is contained in:
parent
26b467e390
commit
4472867992
@ -926,14 +926,14 @@ void display::create_buttons()
|
||||
action_work.push_back(std::move(b));
|
||||
}
|
||||
|
||||
menu_buttons_ = std::move(menu_work);
|
||||
action_buttons_ = std::move(action_work);
|
||||
|
||||
if (prevent_draw_) {
|
||||
// buttons start hidden in this case
|
||||
hide_buttons();
|
||||
}
|
||||
|
||||
menu_buttons_ = std::move(menu_work);
|
||||
action_buttons_ = std::move(action_work);
|
||||
|
||||
layout_buttons();
|
||||
DBG_DP << "buttons created";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user