From b6afbd8c098e2ee6f6e7f63de10c31fb3219c351 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Wed, 10 Oct 2012 08:54:39 -0500 Subject: [PATCH] Fixed GuiBox's background being positioned wrong. --- changelog.txt | 1 + src/components/GuiBox.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index 57e4482a9..3c13f7d16 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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. diff --git a/src/components/GuiBox.cpp b/src/components/GuiBox.cpp index b90fd9b76..da4f4baf3 100644 --- a/src/components/GuiBox.cpp +++ b/src/components/GuiBox.cpp @@ -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());