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
c260a8a1
Commit
c260a8a1
authored
Jul 06, 2015
by
Matt Lowe
Browse files
Fixed image centering
parent
bfa002e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/abstractcarditem.cpp
View file @
c260a8a1
...
@@ -123,7 +123,7 @@ void AbstractCardItem::paintPicture(QPainter *painter, const QSizeF &translatedS
...
@@ -123,7 +123,7 @@ void AbstractCardItem::paintPicture(QPainter *painter, const QSizeF &translatedS
}
else
{
}
else
{
painter
->
save
();
painter
->
save
();
transformPainter
(
painter
,
translatedSize
,
angle
);
transformPainter
(
painter
,
translatedSize
,
angle
);
painter
->
drawPixmap
(
QPointF
(
0
,
angle
?
-
1
:
0
),
translatedPixmap
);
painter
->
drawPixmap
(
QPointF
(
1
,
1
),
translatedPixmap
);
painter
->
restore
();
painter
->
restore
();
}
}
painter
->
setBrush
(
bgColor
);
painter
->
setBrush
(
bgColor
);
...
...
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