From 7cd3699ba17322f693e16ff66bd786f510954e93 Mon Sep 17 00:00:00 2001
From: bomilkar <ronald_niederhagen@freenet.de>
Date: Thu, 3 Sep 2020 15:49:30 +0200
Subject: [PATCH] add-comment-lines-to-TC-Gain-and-TL-Gain

---
 src/InfoBoxes/Content/Thermal.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/InfoBoxes/Content/Thermal.cpp b/src/InfoBoxes/Content/Thermal.cpp
index 10fd1c3fec..525119e9d7 100644
--- a/src/InfoBoxes/Content/Thermal.cpp
+++ b/src/InfoBoxes/Content/Thermal.cpp
@@ -61,6 +61,8 @@ UpdateInfoBoxThermal30s(InfoBoxData &data)
   // Set Color (red/black)
   data.SetValueColor(Double(CommonInterface::Calculated().average) <
       CommonInterface::Calculated().common_stats.current_risk_mc ? 1 : 0);
+
+  data.SetCommentFromVerticalSpeed(CommonInterface::Calculated().current_thermal.lift_rate);
 }
 
 void
@@ -85,6 +87,7 @@ UpdateInfoBoxThermalLastGain(InfoBoxData &data)
   }
 
   data.SetValueFromAltitude(thermal.gain);
+  data.SetCommentFromVerticalSpeed(thermal.lift_rate);
 }
 
 void
@@ -143,6 +146,12 @@ UpdateInfoBoxThermalGain(InfoBoxData &data)
   }
 
   data.SetValueFromAltitude(thermal.gain);
+
+  StaticString<16> duration_buffer;
+  duration_buffer.Format(_T("%u s"), (int)thermal.duration);
+  TCHAR buffer[32];
+  _tcscpy (buffer, duration_buffer);
+  data.SetComment (buffer);
 }
 
 void
-- 
2.20.1

