From cf288403b378e74c5c275e3e8dd933966d5b574c Mon Sep 17 00:00:00 2001 From: bitplane Date: Thu, 30 Aug 2007 02:00:13 +0000 Subject: [PATCH] gui button bugfix posted by TomiZ git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@880 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CGUIButton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/CGUIButton.cpp b/source/Irrlicht/CGUIButton.cpp index 621e7a84..2cad9019 100644 --- a/source/Irrlicht/CGUIButton.cpp +++ b/source/Irrlicht/CGUIButton.cpp @@ -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;