QskGraphic: Make sure the underlying texture is big enough

Otherwise the scale factors might be off considerably.

Resolves #233
This commit is contained in:
Peter Hartmann 2022-11-29 15:29:29 +01:00 committed by uwerat
parent 8318ff757b
commit 5e8d03fe50
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@
#include "QskFunctions.h" #include "QskFunctions.h"
#include "QskGraphic.h" #include "QskGraphic.h"
#include <QtMath>
QskGraphicLabelSkinlet::QskGraphicLabelSkinlet( QskSkin* skin ) QskGraphicLabelSkinlet::QskGraphicLabelSkinlet( QskSkin* skin )
: Inherited( skin ) : Inherited( skin )
{ {
@ -96,7 +98,7 @@ QRect QskGraphicLabelSkinlet::graphicRect(
} }
return qskAlignedRect( graphicRect, return qskAlignedRect( graphicRect,
( int ) sz.width(), ( int ) sz.height(), label->alignment() ); qCeil( sz.width() ), qCeil( sz.height() ), label->alignment() );
} }
QSGNode* QskGraphicLabelSkinlet::updateGraphicNode( QSGNode* QskGraphicLabelSkinlet::updateGraphicNode(