Mercurial > public > ostc4
diff Discovery/Src/t3.c @ 613:beeb23d18443
Added "Set Marker" to T3 quick menu:
It is now possible to set a marker while in T?_Profile view using the quick menu access. Because the the string, which is used in the dive menu, is to long, a shorter string had to be added.
author | Ideenmodellierer |
---|---|
date | Fri, 15 Jan 2021 21:33:07 +0100 |
parents | ae7f8333c900 |
children | 8fa2de4414a8 |
line wrap: on
line diff
--- a/Discovery/Src/t3.c Fri Jan 15 21:20:29 2021 +0100 +++ b/Discovery/Src/t3.c Fri Jan 15 21:33:07 2021 +0100 @@ -660,6 +660,11 @@ text[textPointer++] = 0; GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); break; + + case StDMARK: snprintf(text,TEXTSIZE,"\a\003\001%c%c", TXT_2BYTE, TXT2BYTE_SetMarkerShort); + GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); + break; + default: /* show divetime */ Divetime.Total = stateUsed->lifeData.dive_time_seconds_without_surface_time;