Commit 6c174310 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix rendering of the "You won message" on HiDpi

BUGS: 450841
parent da6cfe7b
Pipeline #148610 failed with stage
in 36 seconds
......@@ -75,6 +75,8 @@ QSize MessageBox::size() const
void MessageBox::paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget )
{
QRect rect = pixmap().rect();
rect.setWidth(rect.width() / pixmap().devicePixelRatio());
rect.setHeight(rect.height() / pixmap().devicePixelRatio());
if ( rect.isEmpty() )
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment