Backed out changeset: c1085bbb3dae

--HG--
branch : develop
This commit is contained in:
Nimetu 2016-12-21 23:46:32 +02:00
parent 254c7690f8
commit 04e774dc37
2 changed files with 8 additions and 2 deletions

View file

@ -446,7 +446,10 @@ namespace NLGUI
// ***************************************************************************
sint32 CCtrlButton::getMaxUsedW() const
{
return _W;
sint32 txw, txh;
CViewRenderer &rVR = *CViewRenderer::getInstance();
rVR.getTextureSizeFromId (_TextureIdNormal, txw, txh);
return txw;
}
// ***************************************************************************

View file

@ -511,7 +511,10 @@ namespace NLGUI
// ***************************************************************************
sint32 CViewBitmap::getMaxUsedW() const
{
return _W;
sint32 txw, txh;
CViewRenderer &rVR = *CViewRenderer::getInstance();
rVR.getTextureSizeFromId (_TextureId, txw, txh);
return txw;
}
// ***************************************************************************