CS.engineRpm

This commit is contained in:
机械小鸽 2025-03-01 22:51:29 +08:00 committed by GitHub
parent a1f6f78ccd
commit 21ab6c363a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2314,8 +2314,8 @@ public:
dx += 150;
ui_fill_rect(s->vg, { dx - 65, dy - 38, 130, 90 }, mode_color, 15, 2);
ui_draw_text(s, dx, dy-5, "DISK", 25, COLOR_WHITE, BOLD);
sprintf(str, "%.0f%%", 100 - freeSpace);
ui_draw_text(s, dx, dy-5, "RPM", 25, COLOR_WHITE, BOLD);
sprintf(str, "%d", (int)car_state.getEngineRpm());
ui_draw_text(s, dx, dy + 40, str, 40, COLOR_WHITE, BOLD);
}
}