Fixed GuiBox's background being positioned wrong.

This commit is contained in:
Aloshi 2012-10-10 08:54:39 -05:00
parent 6de46003d9
commit b6afbd8c09
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
October 10
-Added a theming tag for the Fast Select box's text.
-Fixed GuiBox background being positioned wrong.
October 7
-Fixed borders for GuiBox. The right and bottom borders are flipped, too.

View file

@ -37,6 +37,7 @@ void GuiBox::setVerticalImage(std::string path, bool tiled)
void GuiBox::setBackgroundImage(std::string path, bool tiled)
{
mBackgroundImage.setOrigin(0, 0);
mBackgroundImage.setResize(mWidth, mHeight, true);
mBackgroundImage.setTiling(tiled);
mBackgroundImage.setOffsetX(getOffsetX());