Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KPat
Commits
6c174310
Commit
6c174310
authored
Feb 28, 2022
by
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
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
src/messagebox.cpp
View file @
6c174310
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment