From 3f519eb72922607329e1e6a48768d84d1f443efc Mon Sep 17 00:00:00 2001 From: BlockMen Date: Thu, 14 Nov 2013 19:03:55 +0100 Subject: Fix formspec background padding when clipped --- src/guiFormSpecMenu.cpp | 4 ++-- 1 file 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 absrec_size = AbsoluteRect.getSize(); rect = core::rect(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); -- cgit v1.2.3