--- Irrlicht.old/CGUIButton.cpp 26 Sep 2004 13:43:56 -0000 1.1 +++ Irrlicht/CGUIButton.cpp 10 Jan 2005 19:11:57 -0000 1.10 @@ -167,7 +167,8 @@ { core::position2d pos = AbsoluteRect.getCenter(); pos.X -= ImageRect.getWidth() / 2; - pos.X += 1; + // patch by Alan Tyndall + //pos.X += 1; pos.Y -= ImageRect.getHeight() / 2; driver->draw2DImage(Image, pos, ImageRect, clip); @@ -182,7 +183,12 @@ core::position2d pos = AbsoluteRect.getCenter(); pos.X -= PressedImageRect.getWidth() / 2; pos.Y -= PressedImageRect.getHeight() / 2; - + // patch by Alan Tyndall/Jonas Petersen + if (Image == PressedImage) + { + pos.X += 1; + pos.Y += 1; + } driver->draw2DImage(PressedImage, pos, PressedImageRect, clip, video::SColor(255,255,255,255), UseAlphaChannel); }