Fix devicePixelRatio in ServerIconWidget

This commit is contained in:
Florian Märkl 2020-12-29 11:33:15 +01:00
commit 5e3a19fccc
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857

View file

@ -66,6 +66,7 @@ void ServerIconWidget::paintEvent(QPaintEvent *event)
(int)(devicePixelRatioF() * height()),
QImage::Format_ARGB32_Premultiplied);
{
temp_image.setDevicePixelRatio(devicePixelRatioF());
temp_image.fill(QColor(0, 0, 0, 0));
QPainter temp_painter(&temp_image);
render_element(temp_painter, "console");