mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 17:25:32 +00:00
Remove some no longer calls to gui2::init().
The new gui is already initialized on startup so no need do it at other places anymore.
This commit is contained in:
parent
8cbc6a3d92
commit
86abe46280
@ -1918,7 +1918,6 @@ namespace {
|
||||
WML_HANDLER_FUNCTION(message_test_left,/*handler*/,event_info, cfg)
|
||||
{
|
||||
const std::string message = cfg["message"];
|
||||
gui2::init();
|
||||
gui2::twindow window = gui2::build((screen)->video(), "message_test_left");
|
||||
|
||||
// Use an ugly hack, if the spacer has the wanted best_size we use the
|
||||
@ -1950,7 +1949,6 @@ namespace {
|
||||
WML_HANDLER_FUNCTION(message_test_right,/*handler*/,event_info,cfg)
|
||||
{
|
||||
const std::string message = cfg["message"];
|
||||
gui2::init();
|
||||
gui2::twindow window = gui2::build((screen)->video(), "message_test_right");
|
||||
|
||||
// Use an ugly hack, if the spacer has the wanted best_size we use the
|
||||
|
Loading…
x
Reference in New Issue
Block a user