Commit cf288403 authored by bitplane's avatar bitplane

gui button bugfix posted by TomiZ

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@880 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9e4d29dd
......@@ -250,7 +250,7 @@ void CGUIButton::draw()
pos.X -= PressedImageRect.getWidth() / 2;
pos.Y -= PressedImageRect.getHeight() / 2;
// patch by Alan Tyndall/Jonas Petersen
if (Image == PressedImage)
if (Image == PressedImage && PressedImageRect == ImageRect)
{
pos.X += 1;
pos.Y += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment