Skip to content

Commit

Permalink
Use correct aspectRation for gst video
Browse files Browse the repository at this point in the history
  • Loading branch information
gillamkid authored and HTRamsey committed Oct 25, 2024
1 parent 78f8fca commit 34cdb6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FlightDisplay/FlightDisplayViewVideo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Item {

property bool useSmallFont: true

property double _ar: QGroundControl.videoManager.aspectRatio
property double _ar: QGroundControl.videoManager.gstreamerEnabled
? QGroundControl.videoManager.videoSize.width / QGroundControl.videoManager.videoSize.height
: QGroundControl.videoManager.aspectRatio
property bool _showGrid: QGroundControl.settingsManager.videoSettings.gridLines.rawValue
property var _dynamicCameras: globals.activeVehicle ? globals.activeVehicle.cameraManager : null
property bool _connected: globals.activeVehicle ? !globals.activeVehicle.communicationLost : false
Expand Down

0 comments on commit 34cdb6b

Please sign in to comment.