summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-16 15:27:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-16 15:32:04 +0100
commit0cb32e69d3247bf8b38c2db91dfbac5791b806d5 (patch)
treef272b94da429502b4392d41f86f585861c917339
parentbd0a4ba995269f90eb5068e8a29fb1807c980d97 (diff)
opentrack: make game/raw data in the ui conditional
-rw-r--r--opentrack/main-window.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index 9e5414bf..b60eb8bc 100644
--- a/opentrack/main-window.cpp
+++ b/opentrack/main-window.cpp
@@ -498,20 +498,29 @@ void main_window::show_pose_(const double* mapped, const double* raw)
ui.pose_display->present(mapped[Yaw], mapped[Pitch], -mapped[Roll],
mapped[TX], mapped[TY], mapped[TZ]);
+#ifndef UI_NO_RAW_DATA
QLCDNumber* raw_[] = {
ui.raw_x, ui.raw_y, ui.raw_z,
ui.raw_yaw, ui.raw_pitch, ui.raw_roll,
};
-
+#endif
+#ifndef UI_NO_GAME_DATA
QLCDNumber* mapped_[] = {
ui.pose_x, ui.pose_y, ui.pose_z,
ui.pose_yaw, ui.pose_pitch, ui.pose_roll,
};
+#endif
+#if !defined UI_NO_RAW_DATA || !defined UI_NO_GAME_DATA
for (int k = 0; k < 6; k++)
+#endif
{
+#ifndef UI_NO_RAW_DATA
raw_[k]->display(iround(raw[k]));
+#endif
+#ifndef UI_NO_GAME_DATA
mapped_[k]->display(iround(mapped[k]));
+#endif
}
QString game_title;