Skip to content

Commit

Permalink
Fix Retina rotation for Android and OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
dragly committed Apr 6, 2016
1 parent d2b8c11 commit 084f6ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qml/sensors/Retina.qml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Node {
}
}
]
property list<Rotation> noTransforms
property bool plotKernel: true
anchors {
fill: parent
Expand All @@ -154,9 +155,15 @@ Node {
retinaEngine: retinaEngine

transform: {
if(Qt.platform.os === "windows"){
switch(Qt.platform.os) {
case "windows":
return windowsTransforms;
case "osx":
return osxTransforms;
case "android":
return androidTransforms;
}
return noTransforms;
}
}

Expand Down

0 comments on commit 084f6ab

Please sign in to comment.