@@ -477,7 +477,7 @@ void AnnotatedCameraWidget::updateState(const UIState &s) {
477
477
car_state.getCruiseState ().getAvailable ();
478
478
gacTr = s.scene .gac_tr ;
479
479
480
- mapVisible = s.scene .map_visible ;
480
+ splitPanelVisible = s.scene .map_visible ;
481
481
482
482
// ############################## DEV UI START ##############################
483
483
lead_d_rel = radar_state.getLeadOne ().getDRel ();
@@ -794,7 +794,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) {
794
794
if (!reversing) {
795
795
// ####### 1 ROW #######
796
796
QRect bar_rect1 (rect ().left (), rect ().bottom () - 60 , rect ().width (), 61 );
797
- if (devUiEnabled && !mapVisible && devUiInfo == 1 ) {
797
+ if (devUiEnabled && !splitPanelVisible && devUiInfo == 1 ) {
798
798
p.setPen (Qt::NoPen);
799
799
p.setBrush (QColor (0 , 0 , 0 , 100 ));
800
800
p.drawRect (bar_rect1);
@@ -808,15 +808,15 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) {
808
808
}
809
809
810
810
int rn_btn = 0 ;
811
- rn_btn = devUiEnabled && !mapVisible && devUiInfo == 1 ? 30 : 0 ;
811
+ rn_btn = devUiEnabled && !splitPanelVisible && devUiInfo == 1 ? 30 : 0 ;
812
812
uiState ()->scene .rn_offset = rn_btn;
813
813
814
814
if (gac) {
815
815
drawGacButton (p, uiState ()->scene .gac_btn , (rect ().bottom () - (UI_BORDER_SIZE + btn_size / 2 ) - 75 ) - rn_btn, 150 , 150 );
816
816
}
817
817
818
818
// Stand Still Timer
819
- if (standStillTimer && standStill && !mapVisible ) {
819
+ if (standStillTimer && standStill && !splitPanelVisible ) {
820
820
drawStandstillTimer (p, rect ().right () - 650 , 30 + 160 + 250 );
821
821
}
822
822
@@ -1849,10 +1849,10 @@ void AnnotatedCameraWidget::paintEvent(QPaintEvent *event) {
1849
1849
blinker_frame++;
1850
1850
int state = blinkerPulse (blinker_frame);
1851
1851
if (left_blinker) {
1852
- drawLeftTurnSignal (painter, rect ().center ().x () - 300 , mapVisible ? 210 : 90 , state);
1852
+ drawLeftTurnSignal (painter, rect ().center ().x () - 300 , splitPanelVisible ? 210 : 90 , state);
1853
1853
}
1854
1854
if (right_blinker) {
1855
- drawRightTurnSignal (painter, rect ().center ().x () + 180 , mapVisible ? 210 : 90 , state);
1855
+ drawRightTurnSignal (painter, rect ().center ().x () + 180 , splitPanelVisible ? 210 : 90 , state);
1856
1856
}
1857
1857
} else {
1858
1858
blinker_frame = 0 ;
0 commit comments