Fixed: Wrong element width when using scaled texture.
This commit is contained in:
parent
b6ab159229
commit
9655669de6
2 changed files with 6 additions and 0 deletions
|
@ -446,6 +446,9 @@ namespace NLGUI
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
sint32 CCtrlButton::getMaxUsedW() const
|
sint32 CCtrlButton::getMaxUsedW() const
|
||||||
{
|
{
|
||||||
|
if (_Scale)
|
||||||
|
return _WReal;
|
||||||
|
|
||||||
sint32 txw, txh;
|
sint32 txw, txh;
|
||||||
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||||
rVR.getTextureSizeFromId (_TextureIdNormal, txw, txh);
|
rVR.getTextureSizeFromId (_TextureIdNormal, txw, txh);
|
||||||
|
|
|
@ -511,6 +511,9 @@ namespace NLGUI
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
sint32 CViewBitmap::getMaxUsedW() const
|
sint32 CViewBitmap::getMaxUsedW() const
|
||||||
{
|
{
|
||||||
|
if (_Scale)
|
||||||
|
return _WReal;
|
||||||
|
|
||||||
sint32 txw, txh;
|
sint32 txw, txh;
|
||||||
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||||
rVR.getTextureSizeFromId (_TextureId, txw, txh);
|
rVR.getTextureSizeFromId (_TextureId, txw, txh);
|
||||||
|
|
Loading…
Reference in a new issue