Attempt at improving quality of images on mac
This commit is contained in:
parent
92132ed6fb
commit
4e2a82f2bd
2
QHotkey
2
QHotkey
@ -1 +1 @@
|
||||
Subproject commit 7c4ef6a03a219c99932975bab270ea812589e1ad
|
||||
Subproject commit 9eace8fbbd8dede95db623eea5e25403fd59b490
|
@ -14,8 +14,9 @@ CropEditor::CropEditor(QPixmap *image, QObject *parent) : QObject(parent) {
|
||||
scene = new CropScene(parent, image);
|
||||
view = new CropView(scene);
|
||||
qreal ratio = QApplication::primaryScreen()->devicePixelRatio();
|
||||
pixmapItem = new QGraphicsPixmapItem(image->scaled(image->width() / ratio, image->height() / ratio));
|
||||
pixmapItem = new QGraphicsPixmapItem(*image);
|
||||
pixmapItem->setZValue(-1);
|
||||
pixmapItem->setScale(1 / ratio);
|
||||
scene->addItem(pixmapItem);
|
||||
scene->setSceneRect(image->rect());
|
||||
view->showFullScreen();
|
||||
|
Loading…
Reference in New Issue
Block a user