Fix formspec background padding when clipped

This commit is contained in:
BlockMen 2013-11-14 19:03:55 +01:00
parent 9a750450ed
commit 3f519eb729
1 changed files with 2 additions and 2 deletions

View File

@ -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);