Fixed: Wrong element width when using scaled texture.

--HG--
branch : develop
feature/pipeline-tools
Nimetu 8 years ago
parent 04e774dc37
commit 3fbfa4743b

@ -446,6 +446,9 @@ namespace NLGUI
// ***************************************************************************
sint32 CCtrlButton::getMaxUsedW() const
{
if (_Scale)
return _WReal;
sint32 txw, txh;
CViewRenderer &rVR = *CViewRenderer::getInstance();
rVR.getTextureSizeFromId (_TextureIdNormal, txw, txh);

@ -511,6 +511,9 @@ namespace NLGUI
// ***************************************************************************
sint32 CViewBitmap::getMaxUsedW() const
{
if (_Scale)
return _WReal;
sint32 txw, txh;
CViewRenderer &rVR = *CViewRenderer::getInstance();
rVR.getTextureSizeFromId (_TextureId, txw, txh);

Loading…
Cancel
Save