Cleanup hack that seems unecessary

This commit is contained in:
auria.mg
2017-04-16 21:17:13 -04:00
parent 487d007b17
commit 2da86cab08

View File

@@ -819,12 +819,11 @@ void Skin::drawProgress(Widget* w, const core::recti &rect,
drawBoxFromStretchableTexture(w, rect,
SkinConfig::m_render_params["progress::neutral"],
w->m_deactivated);
//the " - 10" is a dirty hack to avoid to have the right arrow
// before the left one
//FIXME
core::recti rect2 = rect;
rect2.LowerRightCorner.X -= (rect.getWidth() - 10)
- progress->getValue()*rect.getWidth()/100;
rect2.LowerRightCorner.X -= rect.getWidth()
- progress->getValue()*rect.getWidth() / 100;
drawBoxFromStretchableTexture(w, rect2,
SkinConfig::m_render_params["progress::fill"],