diff --git a/QHotkey b/QHotkey index 7c4ef6a..9eace8f 160000 --- a/QHotkey +++ b/QHotkey @@ -1 +1 @@ -Subproject commit 7c4ef6a03a219c99932975bab270ea812589e1ad +Subproject commit 9eace8fbbd8dede95db623eea5e25403fd59b490 diff --git a/cropeditor/cropeditor.cpp b/cropeditor/cropeditor.cpp index 61c3f53..b7720aa 100644 --- a/cropeditor/cropeditor.cpp +++ b/cropeditor/cropeditor.cpp @@ -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();