mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Proprly initialize the tile with transparent background
This commit is contained in:
parent
44862114ab
commit
12c878d8e2
@ -11,7 +11,10 @@ public:
|
||||
: _zoom(zoom), _size(img->size()), _scale(scale),
|
||||
_text(QSize(img->size().width() / scale.x(),
|
||||
img->size().height() / scale.y())), _painter(img)
|
||||
{_painter.scale(scale.x(), scale.y());}
|
||||
{
|
||||
img->fill(Qt::transparent);
|
||||
_painter.scale(scale.x(), scale.y());
|
||||
}
|
||||
|
||||
int zoom() const {return _zoom;}
|
||||
const QSize &size() const {return _size;}
|
||||
|
Loading…
Reference in New Issue
Block a user