mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
UI: remove redundant condition (#23918)
old-commit-hash: 82bc052dc631512f3cf871c1dc4b5c2be1cab052
This commit is contained in:
@@ -222,7 +222,7 @@ void OnroadHud::paintEvent(QPaintEvent *event) {
|
|||||||
configFont(p, "Open Sans", 48, "Regular");
|
configFont(p, "Open Sans", 48, "Regular");
|
||||||
drawText(p, rc.center().x(), 118, "MAX", is_cruise_set ? 200 : 100);
|
drawText(p, rc.center().x(), 118, "MAX", is_cruise_set ? 200 : 100);
|
||||||
if (is_cruise_set) {
|
if (is_cruise_set) {
|
||||||
configFont(p, "Open Sans", 88, is_cruise_set ? "Bold" : "SemiBold");
|
configFont(p, "Open Sans", 88, "Bold");
|
||||||
drawText(p, rc.center().x(), 212, maxSpeed, 255);
|
drawText(p, rc.center().x(), 212, maxSpeed, 255);
|
||||||
} else {
|
} else {
|
||||||
configFont(p, "Open Sans", 80, "SemiBold");
|
configFont(p, "Open Sans", 80, "SemiBold");
|
||||||
|
|||||||
Reference in New Issue
Block a user