1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP-1354 PFD fixes : World size (grey background appears when board is tilted) + Removed empty foreground item (add flickering on render)

This commit is contained in:
Laurent Lalanne 2014-06-19 00:49:45 +02:00
parent 98af0a544f
commit 29d0d31e09
2 changed files with 1 additions and 9 deletions

View File

@ -53,14 +53,6 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
} }
SvgElementImage {
id: foreground
elementName: "foreground"
sceneSize: sceneItem.viewportSize
anchors.centerIn: parent
}
SvgElementImage { SvgElementImage {
id: side_slip_fixed id: side_slip_fixed
elementName: "sideslip-fixed" elementName: "sideslip-fixed"

View File

@ -12,7 +12,7 @@ Item {
property variant scaledBounds: svgRenderer.scaledElementBounds("pfd.svg", "horizon") property variant scaledBounds: svgRenderer.scaledElementBounds("pfd.svg", "horizon")
width: Math.round(sceneItem.width*scaledBounds.width/2)*2 width: Math.round(sceneItem.width*scaledBounds.width/2)*2
height: Math.round(sceneItem.height*scaledBounds.height/2)*2 height: Math.round(sceneItem.height*scaledBounds.height/2)*3
property double pitch1DegScaledHeight: (svgRenderer.scaledElementBounds("pfd.svg", "pitch-90").y - property double pitch1DegScaledHeight: (svgRenderer.scaledElementBounds("pfd.svg", "pitch-90").y -
svgRenderer.scaledElementBounds("pfd.svg", "pitch90").y)/180.0 svgRenderer.scaledElementBounds("pfd.svg", "pitch90").y)/180.0