diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-15 06:42:02 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-18 18:48:42 +0200 |
commit | ab5cd03c9a50cef1dafa32c100e02ab36387db45 (patch) | |
tree | afd2edcafe7a42e51a826be3de865ad9ff42337f /gui/main-window.cpp | |
parent | 7f68fc115abebd617d495a7d1a18b4fa0158c8e2 (diff) |
gui: don't redraw whole mapping window layout
When we're tracking, we only want to redraw the splines
in the mapping window while the mapping window is open.
It was a major CPU hog to redraw in case the mapping
window's open.
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r-- | gui/main-window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index aa8e16f3..11479a1a 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -523,8 +523,8 @@ void MainWindow::display_pose(const double *mapped, const double *raw) ui.pose_display->rotate_async(mapped[Yaw], mapped[Pitch], -mapped[Roll], mapped[TX], mapped[TY], mapped[TZ]); - if (mapping_widget && mapping_widget->isVisible()) - mapping_widget->repaint(); + if (mapping_widget) + mapping_widget->refresh_tab(); QLCDNumber* raw_[] = { ui.raw_x, ui.raw_y, ui.raw_z, |