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:
parent
98af0a544f
commit
29d0d31e09
@ -53,14 +53,6 @@ Rectangle {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
SvgElementImage {
|
||||
id: foreground
|
||||
elementName: "foreground"
|
||||
sceneSize: sceneItem.viewportSize
|
||||
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
|
||||
SvgElementImage {
|
||||
id: side_slip_fixed
|
||||
elementName: "sideslip-fixed"
|
||||
|
@ -12,7 +12,7 @@ Item {
|
||||
|
||||
property variant scaledBounds: svgRenderer.scaledElementBounds("pfd.svg", "horizon")
|
||||
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 -
|
||||
svgRenderer.scaledElementBounds("pfd.svg", "pitch90").y)/180.0
|
||||
|
Loading…
Reference in New Issue
Block a user