comparison Discovery/Src/t7.c @ 553:43a2dd4ba30f

Added color indicator for focus state: Some lines in T7 and T3 screen will turn blue in case the OSTC detects a potential view of the diver. During focus state motion events are evaluated and proceeded.
author Ideenmodellierer
date Sun, 08 Nov 2020 18:49:54 +0100
parents d784f281833a
children 5e0a75e2f00b
comparison
equal deleted inserted replaced
552:531e7818b737 553:43a2dd4ba30f
575 selection_customview = CVIEW_noneOrDebug; 575 selection_customview = CVIEW_noneOrDebug;
576 else 576 else
577 selection_customview = settingsGetPointer()->tX_customViewPrimary; 577 selection_customview = settingsGetPointer()->tX_customViewPrimary;
578 578
579 t7_change_customview(ACTION_END); 579 t7_change_customview(ACTION_END);
580 InitMotionDetection(); 580
581 if((settingsGetPointer()->MotionDetection != MOTION_DETECT_OFF))
582 {
583 InitMotionDetection();
584 }
581 } 585 }
582 586
583 if(status.page == PageSurface) 587 if(status.page == PageSurface)
584 set_globalState(StD); 588 set_globalState(StD);
585 589
607 if(last_mode != MODE_SURFACE) 611 if(last_mode != MODE_SURFACE)
608 { 612 {
609 last_mode = MODE_SURFACE; 613 last_mode = MODE_SURFACE;
610 selection_customview = customviewsSurface[0]; 614 selection_customview = customviewsSurface[0];
611 InitMotionDetection(); 615 InitMotionDetection();
616 resetFocusState();
612 } 617 }
613 if(status.page == PageDive) 618 if(status.page == PageDive)
614 set_globalState(StS); 619 set_globalState(StS);
615 620
616 if(settingsGetPointer()->showDebugInfo) 621 if(settingsGetPointer()->showDebugInfo)
2839 // plugin box 2844 // plugin box
2840 LeftLow.x = CUSTOMBOX_LINE_LEFT; 2845 LeftLow.x = CUSTOMBOX_LINE_LEFT;
2841 WidthHeight.x = CUSTOMBOX_LINE_RIGHT - CUSTOMBOX_LINE_LEFT; 2846 WidthHeight.x = CUSTOMBOX_LINE_RIGHT - CUSTOMBOX_LINE_LEFT;
2842 LeftLow.y = 60; 2847 LeftLow.y = 60;
2843 WidthHeight.y = 440 - LeftLow.y; 2848 WidthHeight.y = 440 - LeftLow.y;
2844 GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, colorBox); 2849 if(viewInFocus())
2850 {
2851 GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, CLUT_Font023);
2852 }
2853 else
2854 {
2855 GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, colorBox);
2856 }
2845 2857
2846 if(PluginBoxHeader) 2858 if(PluginBoxHeader)
2847 { 2859 {
2848 // plugin box - header 2860 // plugin box - header
2849 start.x = CUSTOMBOX_LINE_LEFT; 2861 start.x = CUSTOMBOX_LINE_LEFT;