From da650cee607b194b6057d9f42498f82ba4813ca6 Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Tue, 24 Jan 2012 11:31:00 +0200 Subject: [PATCH] gcscontrol: keep joystick image aspect ratio OP-619 --- ground/openpilotgcs/src/plugins/gcscontrol/joystickcontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/gcscontrol/joystickcontrol.cpp b/ground/openpilotgcs/src/plugins/gcscontrol/joystickcontrol.cpp index 0596b22c1..571b07068 100644 --- a/ground/openpilotgcs/src/plugins/gcscontrol/joystickcontrol.cpp +++ b/ground/openpilotgcs/src/plugins/gcscontrol/joystickcontrol.cpp @@ -149,7 +149,7 @@ void JoystickControl::paintEvent(QPaintEvent *event) void JoystickControl::resizeEvent(QResizeEvent *event) { Q_UNUSED(event); - fitInView(m_background, Qt::IgnoreAspectRatio ); + fitInView(m_background, Qt::KeepAspectRatio); } /**