Commit 535e873e authored by Radek Polak's avatar Radek Polak

gta04 charging graph - fix drawing charge near top of screen

parent 9ac90800
......@@ -301,7 +301,7 @@ void NeoControl::paintEvent(QPaintEvent *)
int secs = dtMin.secsTo(dt);
int x2 = (w * secs) / totalSecs;
int y2 = h - (h * charge) / chargeMax;
int y2 = h - (6 * h * charge) / (chargeMax * 7);
// Draw time on x axis
if (abs(x2 - hourTextX) > 5 * fontW) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment