mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 23:26:00 +00:00
Backed out changeset: c1085bbb3dae
This commit is contained in:
parent
b149858441
commit
b6ab159229
2 changed files with 8 additions and 2 deletions
|
@ -446,7 +446,10 @@ namespace NLGUI
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
sint32 CCtrlButton::getMaxUsedW() const
|
sint32 CCtrlButton::getMaxUsedW() const
|
||||||
{
|
{
|
||||||
return _W;
|
sint32 txw, txh;
|
||||||
|
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||||
|
rVR.getTextureSizeFromId (_TextureIdNormal, txw, txh);
|
||||||
|
return txw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
|
@ -511,7 +511,10 @@ namespace NLGUI
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
sint32 CViewBitmap::getMaxUsedW() const
|
sint32 CViewBitmap::getMaxUsedW() const
|
||||||
{
|
{
|
||||||
return _W;
|
sint32 txw, txh;
|
||||||
|
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||||
|
rVR.getTextureSizeFromId (_TextureId, txw, txh);
|
||||||
|
return txw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue