diff options
author | BlockMen <nmuelll@web.de> | 2013-11-14 19:03:55 +0100 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2013-11-14 19:03:55 +0100 |
commit | 3f519eb72922607329e1e6a48768d84d1f443efc (patch) | |
tree | 04cc388180085dc49b1910d40d0f1288598d0d83 /src | |
parent | 9a750450edb2b71422f2a10cff281a2ef4b116df (diff) | |
download | minetest-3f519eb72922607329e1e6a48768d84d1f443efc.tar.gz minetest-3f519eb72922607329e1e6a48768d84d1f443efc.tar.bz2 minetest-3f519eb72922607329e1e6a48768d84d1f443efc.zip |
Fix formspec background padding when clipped
Diffstat (limited to 'src')
-rw-r--r-- | src/guiFormSpecMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index eecd2c1b2..2416e4c8a 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -1875,8 +1875,8 @@ void GUIFormSpecMenu::drawMenu() core::dimension2d<s32> absrec_size = AbsoluteRect.getSize(); rect = core::rect<s32>(AbsoluteRect.UpperLeftCorner.X - spec.pos.X, AbsoluteRect.UpperLeftCorner.Y - spec.pos.Y, - AbsoluteRect.UpperLeftCorner.X + absrec_size.Width + spec.pos.X*2, - AbsoluteRect.UpperLeftCorner.Y + absrec_size.Height + spec.pos.Y*2); + AbsoluteRect.UpperLeftCorner.X + absrec_size.Width + spec.pos.X, + AbsoluteRect.UpperLeftCorner.Y + absrec_size.Height + spec.pos.Y); } const video::SColor color(255,255,255,255); |