mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 01:33:46 +01:00
Fix formspec background padding when clipped
This commit is contained in:
parent
9a750450ed
commit
3f519eb729
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user