mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Ref T736 Fix radar rotating in wrong direction when Lock North is unchecked
This commit is contained in:
@@ -216,8 +216,8 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
// Rotations are summed up, hence rotate back before applying the new rotation.
|
// Rotations are summed up, hence rotate back before applying the new rotation.
|
||||||
// Doing a global transformation reset will not work as it resets also zooming.
|
// Doing a global transformation reset will not work as it resets also zooming.
|
||||||
ui->gv_RadarView->rotate(-m_rotatenAngle);
|
ui->gv_RadarView->rotate(m_rotatenAngle);
|
||||||
ui->gv_RadarView->rotate(headingDegree);
|
ui->gv_RadarView->rotate(-headingDegree);
|
||||||
m_rotatenAngle = headingDegree;
|
m_rotatenAngle = headingDegree;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user