Fix formspec background padding when clipped
authorBlockMen <nmuelll@web.de>
Thu, 14 Nov 2013 18:03:55 +0000 (19:03 +0100)
committerBlockMen <nmuelll@web.de>
Thu, 14 Nov 2013 18:03:55 +0000 (19:03 +0100)
src/guiFormSpecMenu.cpp

index eecd2c1b26d9db16223e166e27c81af1470e5b50..2416e4c8aa0c589cf856f8d187df369ffe61c38d 100644 (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);