QskGraphic: Make sure the underlying texture is big enough
Otherwise the scale factors might be off considerably. Resolves #233
This commit is contained in:
parent
8318ff757b
commit
5e8d03fe50
|
@ -11,6 +11,8 @@
|
|||
#include "QskFunctions.h"
|
||||
#include "QskGraphic.h"
|
||||
|
||||
#include <QtMath>
|
||||
|
||||
QskGraphicLabelSkinlet::QskGraphicLabelSkinlet( QskSkin* skin )
|
||||
: Inherited( skin )
|
||||
{
|
||||
|
@ -96,7 +98,7 @@ QRect QskGraphicLabelSkinlet::graphicRect(
|
|||
}
|
||||
|
||||
return qskAlignedRect( graphicRect,
|
||||
( int ) sz.width(), ( int ) sz.height(), label->alignment() );
|
||||
qCeil( sz.width() ), qCeil( sz.height() ), label->alignment() );
|
||||
}
|
||||
|
||||
QSGNode* QskGraphicLabelSkinlet::updateGraphicNode(
|
||||
|
|
Loading…
Reference in New Issue