Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix formspec background padding when clipped
  • Loading branch information
BlockMen committed Nov 14, 2013
1 parent 9a75045 commit 3f519eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guiFormSpecMenu.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 3f519eb

Please sign in to comment.