Attempt at improving quality of images on mac

This commit is contained in:
ArsenArsen 2017-05-14 23:19:13 +02:00
parent 92132ed6fb
commit 4e2a82f2bd
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 7c4ef6a03a219c99932975bab270ea812589e1ad
Subproject commit 9eace8fbbd8dede95db623eea5e25403fd59b490

View File

@ -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();