[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [spectacle/Applications/16.04] src/QuickEditor: Unbreak HiDPI
From: Boudhayan Gupta <me () BaloneyGeek ! com>
Date: 2016-04-25 17:45:51
Message-ID: E1aukZz-00031y-Nh () scm ! kde ! org
[Download RAW message or body]
Git commit 3d4dcacc6cbbd75f9d31d26bfa2a1f2ced37f721 by Boudhayan Gupta.
Committed on 25/04/2016 at 17:45.
Pushed by bgupta into branch 'Applications/16.04'.
Unbreak HiDPI
M +5 -5 src/QuickEditor/EditorRoot.qml
http://commits.kde.org/kscreengenie/3d4dcacc6cbbd75f9d31d26bfa2a1f2ced37f721
diff --git a/src/QuickEditor/EditorRoot.qml b/src/QuickEditor/EditorRoot.qml
index 55c6177..f7fb33b 100644
--- a/src/QuickEditor/EditorRoot.qml
+++ b/src/QuickEditor/EditorRoot.qml
@@ -36,10 +36,10 @@ Item {
}
selection = cropRectangle.createObject(parent, {
- "x": xx,
- "y": yy,
+ "x": xx,
+ "y": yy,
"height": hh,
- "width": ww
+ "width": ww
});
cropDisplayCanvas.requestPaint();
@@ -73,8 +73,8 @@ Item {
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;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic