Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Sun Nov 08 18:46:46 2020 +0100 +++ b/Discovery/Src/t7.c Sun Nov 08 18:49:54 2020 +0100 @@ -577,7 +577,11 @@ selection_customview = settingsGetPointer()->tX_customViewPrimary; t7_change_customview(ACTION_END); - InitMotionDetection(); + + if((settingsGetPointer()->MotionDetection != MOTION_DETECT_OFF)) + { + InitMotionDetection(); + } } if(status.page == PageSurface) @@ -609,6 +613,7 @@ last_mode = MODE_SURFACE; selection_customview = customviewsSurface[0]; InitMotionDetection(); + resetFocusState(); } if(status.page == PageDive) set_globalState(StS); @@ -2841,7 +2846,14 @@ WidthHeight.x = CUSTOMBOX_LINE_RIGHT - CUSTOMBOX_LINE_LEFT; LeftLow.y = 60; WidthHeight.y = 440 - LeftLow.y; - GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, colorBox); + if(viewInFocus()) + { + GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, CLUT_Font023); + } + else + { + GFX_draw_box(&t7screen, LeftLow, WidthHeight, 1, colorBox); + } if(PluginBoxHeader) {