Commit 9f786461 authored by bitplane's avatar bitplane

CGUIButton was using texture->getSize rather than getOriginalSize

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@764 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e5dbed93
......@@ -305,7 +305,7 @@ void CGUIButton::setImage(video::ITexture* image)
Image = image;
if (image)
ImageRect = core::rect<s32>(core::position2d<s32>(0,0), image->getSize());
ImageRect = core::rect<s32>(core::position2d<s32>(0,0), image->getOriginalSize());
if (Image)
Image->grab();
......@@ -338,7 +338,7 @@ void CGUIButton::setPressedImage(video::ITexture* image)
PressedImage = image;
if (image)
PressedImageRect = core::rect<s32>(core::position2d<s32>(0,0), image->getSize());
PressedImageRect = core::rect<s32>(core::position2d<s32>(0,0), image->getOriginalSize());
if (PressedImage)
PressedImage->grab();
......
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