Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
2aa5c7eb
Commit
2aa5c7eb
authored
Dec 15, 2009
by
Max-Wilhelm Bruker
Browse files
bugfix
parent
564ae4db
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/pingpixmapgenerator.cpp
View file @
2aa5c7eb
...
@@ -7,7 +7,7 @@ QPixmap PingPixmapGenerator::generatePixmap(int size, int value, int max)
...
@@ -7,7 +7,7 @@ QPixmap PingPixmapGenerator::generatePixmap(int size, int value, int max)
pixmap
.
fill
(
Qt
::
transparent
);
pixmap
.
fill
(
Qt
::
transparent
);
QPainter
painter
(
&
pixmap
);
QPainter
painter
(
&
pixmap
);
QColor
color
;
QColor
color
;
if
(
max
==
-
1
)
if
(
(
max
==
-
1
)
||
(
value
==
-
1
))
color
=
Qt
::
black
;
color
=
Qt
::
black
;
else
else
color
.
setHsv
(
120
*
(
1.0
-
((
double
)
value
/
max
)),
255
,
255
);
color
.
setHsv
(
120
*
(
1.0
-
((
double
)
value
/
max
)),
255
,
255
);
...
...
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