mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Enable hidpi (retina) support under osx
* add to the application bundle a custom info.plist * fix a graphic glitch on the life counter
This commit is contained in:
parent
54f0706b4a
commit
e88bad786f
3 changed files with 40 additions and 2 deletions
|
|
@ -38,9 +38,8 @@ void PlayerCounter::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*
|
|||
|
||||
painter->drawPath(path);
|
||||
|
||||
QRectF translatedRect = painter->combinedTransform().mapRect(boundingRect());
|
||||
QRectF translatedRect = path.controlPointRect();
|
||||
QSize translatedSize = translatedRect.size().toSize();
|
||||
painter->resetTransform();
|
||||
QFont font("Serif");
|
||||
font.setWeight(QFont::Bold);
|
||||
font.setPixelSize(qMax((int) round(translatedSize.height() / 1.3), 9));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue