mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 14:56:13 +00:00
Merge with develop
This commit is contained in:
parent
d994a29d79
commit
485c4721bc
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