gui button bugfix posted by TomiZ

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@880 dfc29bdd-3216-0410-991c-e03cc46cb475
master
bitplane 2007-08-30 02:00:13 +00:00
parent 9e4d29dd2b
commit cf288403b3
1 changed files with 1 additions and 1 deletions

View File

@ -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;