Backed out changeset: c1085bbb3dae

This commit is contained in:
Nimetu 2016-12-21 23:46:32 +02:00
parent b149858441
commit b6ab159229
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;
}
// ***************************************************************************