From c7f28c2c0c7d23712552f0cd6ea0cf462068e081 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 17 Dec 2013 21:28:15 +0000 Subject: Added a preserve_attribute option to the ui::Paint::print_bitmap() functions and the ui::Bitmap class, preserve aspect ratio on the loader screen image and the main menu background. --- src/client/mainmenu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/mainmenu.cc') diff --git a/src/client/mainmenu.cc b/src/client/mainmenu.cc index 7374224..a70cad0 100644 --- a/src/client/mainmenu.cc +++ b/src/client/mainmenu.cc @@ -352,7 +352,7 @@ void MainMenu::draw_background() // we override draw_background instead of adding a ui::Bitmap child // this simplifies child window managment if (mainmenu_background.size()) { - ui::Paint::draw_bitmap(global_location(), size(), math::Color(), mainmenu_background); + ui::Paint::draw_bitmap(global_location(), size(), mainmenu_background, true); } } -- cgit v1.2.3