From: BlockMen Date: Thu, 14 Nov 2013 18:03:55 +0000 (+0100) Subject: Fix formspec background padding when clipped X-Git-Tag: 0.4.8~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f519eb72922607329e1e6a48768d84d1f443efc;p=oweals%2Fminetest.git Fix formspec background padding when clipped --- 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);