mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Adjust fontsize up on highdpi displays (#3610)
This commit is contained in:
parent
abe4f5ca60
commit
477faafb84
3 changed files with 9 additions and 6 deletions
|
|
@ -49,8 +49,11 @@ void AbstractGraphicsItem::paintNumberEllipse(int number,
|
|||
|
||||
painter->restore();
|
||||
}
|
||||
void resetPainterTransform(QPainter *painter)
|
||||
|
||||
int resetPainterTransform(QPainter *painter)
|
||||
{
|
||||
painter->resetTransform();
|
||||
painter->setTransform(painter->deviceTransform().inverted());
|
||||
}
|
||||
auto tx = painter->deviceTransform().inverted();
|
||||
painter->setTransform(tx);
|
||||
return tx.isScaling() ? 1.0 / tx.m11() : 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue