summaryrefslogtreecommitdiffstats
path: root/kde/patch/spectacle/spectacle_hidpi.patch
blob: 19cf92321b4b7ecdcda3679729b9cd8805909bbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/src/QuickEditor/EditorRoot.qml
+++ b/src/QuickEditor/EditorRoot.qml
@@ -36,10 +36,10 @@
         }
 
         selection = cropRectangle.createObject(parent, {
-             "x": xx,
-             "y": yy,
+             "x":      xx,
+             "y":      yy,
              "height": hh,
-             "width": ww
+             "width":  ww
         });
 
         cropDisplayCanvas.requestPaint();
@@ -73,8 +73,8 @@
         source: "image://snapshot/rawimage";
         cache: false;
 
-        height: Window.height;
-        width: Window.width;
+        height: Window.height / Screen.devicePixelRatio;
+        width: Window.width / Screen.devicePixelRatio;
         fillMode: Image.PreserveAspectFit;
     }