summaryrefslogtreecommitdiff
path: root/hud
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-11 03:29:55 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-11 03:29:55 +0200
commita42af8eb4aaa036be80c133d464409a482dd47dc (patch)
tree80b14a04f15624d8d66c8cb6b180533ba655193e /hud
parent2b1868022506d253baf6875a6c6fde7ef0b7b391 (diff)
HudIcon: makesure we set the the proper icon size, to a fixed value
(bzr r3830.6.2)
Diffstat (limited to 'hud')
-rw-r--r--hud/HudIcon.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/hud/HudIcon.cpp b/hud/HudIcon.cpp
index 919f01a7c..ec7c1d181 100644
--- a/hud/HudIcon.cpp
+++ b/hud/HudIcon.cpp
@@ -45,8 +45,7 @@ void Icon::SetIcon(std::string const& icon_name, unsigned int icon_size, unsigne
IconTexture::SetByIconName(icon_name, icon_size);
icon_renderer_.SetTargetSize(tile_size, icon_size, 0);
- SetMinimumHeight(tile_size + padding);
- SetMinimumWidth(tile_size + padding);
+ SetMinMaxSize(tile_size + padding, tile_size + padding);
}
void Icon::Draw(nux::GraphicsEngine& GfxContext, bool force_draw)