diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp index 7f9a3808924..a57715d07e1 100644 --- a/Games/Minesweeper/main.cpp +++ b/Games/Minesweeper/main.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -65,15 +66,19 @@ int main(int argc, char** argv) container.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed); container.set_preferred_size(0, 36); container.set_layout(); - auto& flag_icon_label = container.add(); - flag_icon_label.set_icon(Gfx::Bitmap::load_from_file("/res/icons/minesweeper/flag.png")); + + auto& flag_image = container.add(); + flag_image.load_from_file("/res/icons/minesweeper/flag.png"); + auto& flag_label = container.add(); auto& face_button = container.add(); face_button.set_button_style(Gfx::ButtonStyle::CoolBar); face_button.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill); face_button.set_preferred_size(36, 0); - auto& time_icon_label = container.add(); - time_icon_label.set_icon(Gfx::Bitmap::load_from_file("/res/icons/minesweeper/timer.png")); + + auto& time_image = container.add(); + time_image.load_from_file("/res/icons/minesweeper/timer.png"); + auto& time_label = container.add(); auto& field = widget.add(flag_label, time_label, face_button, [&](auto size) { size.set_height(size.height() + container.preferred_size().height());