Merge with develop

--HG--
branch : compatibility-develop
This commit is contained in:
Nimetu 2016-12-21 23:16:48 +02:00
commit b95fed61f2
2 changed files with 2 additions and 8 deletions

View file

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

View file

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