gui button bugfix posted by TomiZ
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@880 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
9e4d29dd2b
commit
cf288403b3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue