mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 17:42:40 -06:00
Merge pull request #4231 from CaptV0rt3x/port-1336
Port #1336 from yuzu
This commit is contained in:
commit
dc863724ac
1 changed files with 2 additions and 1 deletions
|
@ -30,8 +30,9 @@ QPixmap CreateCirclePixmapFromColor(const QColor& color) {
|
||||||
QPixmap circle_pixmap(16, 16);
|
QPixmap circle_pixmap(16, 16);
|
||||||
circle_pixmap.fill(Qt::transparent);
|
circle_pixmap.fill(Qt::transparent);
|
||||||
QPainter painter(&circle_pixmap);
|
QPainter painter(&circle_pixmap);
|
||||||
|
painter.setRenderHint(QPainter::Antialiasing);
|
||||||
painter.setPen(color);
|
painter.setPen(color);
|
||||||
painter.setBrush(color);
|
painter.setBrush(color);
|
||||||
painter.drawEllipse(0, 0, 15, 15);
|
painter.drawEllipse({circle_pixmap.width() / 2.0, circle_pixmap.height() / 2.0}, 7.0, 7.0);
|
||||||
return circle_pixmap;
|
return circle_pixmap;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue