mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-26 19:00:53 +00:00
Backed out changeset: c1085bbb3dae
--HG-- branch : develop
This commit is contained in:
parent
254c7690f8
commit
04e774dc37
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
|
Loading…
Reference in a new issue