Merge with develop
--HG-- branch : compatibility-develop
This commit is contained in:
commit
4e4985d647
2 changed files with 14 additions and 2 deletions
|
@ -446,7 +446,13 @@ namespace NLGUI
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
sint32 CCtrlButton::getMaxUsedW() const
|
sint32 CCtrlButton::getMaxUsedW() const
|
||||||
{
|
{
|
||||||
return _W;
|
if (_Scale)
|
||||||
|
return _WReal;
|
||||||
|
|
||||||
|
sint32 txw, txh;
|
||||||
|
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||||
|
rVR.getTextureSizeFromId (_TextureIdNormal, txw, txh);
|
||||||
|
return txw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
|
@ -511,7 +511,13 @@ namespace NLGUI
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
sint32 CViewBitmap::getMaxUsedW() const
|
sint32 CViewBitmap::getMaxUsedW() const
|
||||||
{
|
{
|
||||||
return _W;
|
if (_Scale)
|
||||||
|
return _WReal;
|
||||||
|
|
||||||
|
sint32 txw, txh;
|
||||||
|
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||||
|
rVR.getTextureSizeFromId (_TextureId, txw, txh);
|
||||||
|
return txw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue