diff options
author | Stijn Buys <ingar@osirion.org> | 2013-12-17 21:28:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-12-17 21:28:15 +0000 |
commit | c7f28c2c0c7d23712552f0cd6ea0cf462068e081 (patch) | |
tree | c5e1b21d7362ae923283bc766115725fb97b6759 /src/client/video.cc | |
parent | 765d03abb9f031a9d608edaeb0f0f1bd6eded591 (diff) |
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.
Diffstat (limited to 'src/client/video.cc')
-rw-r--r-- | src/client/video.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/video.cc b/src/client/video.cc index a75089f..0f0c984 100644 --- a/src/client/video.cc +++ b/src/client/video.cc @@ -312,9 +312,12 @@ void draw_loader() gl::enable(GL_BLEND); gl::color(1.0f, 1.0f, 1.0f, 1.0f); - math::Vector2f pos; - math::Vector2f size(render::State::width(), render::State::height()); - ui::Paint::draw_bitmap(pos, size, "bitmaps/loader"); + + + const std::string loader_texture("bitmaps/loader"); + const math::Vector2f size(render::State::width(), render::State::height()); + const math::Vector2f pos; + ui::Paint::draw_bitmap(pos, size, loader_texture, true); if (loader_message.size()) { using render::Text; |