Mercurial > public > ostc4
diff Discovery/Src/tMenuXtra.c @ 547:12f8745c8a94
Added viewport calibration to dive menu:
To allow adjustments of the viewport during dive an option has been added to the dive menu "Xtra" including multi language strings
author | Ideenmodellierer |
---|---|
date | Mon, 02 Nov 2020 21:17:45 +0100 |
parents | 77de014928d6 |
children | 1b243c6c7067 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuXtra.c Mon Nov 02 21:15:42 2020 +0100 +++ b/Discovery/Src/tMenuXtra.c Mon Nov 02 21:17:45 2020 +0100 @@ -78,9 +78,17 @@ strcpy(&text[textPointer],"\n\r"); textPointer += 2; + if((line == 0) || (line == 4)) + { + text[textPointer++] = TXT_2BYTE; + text[textPointer++] = TXT2BYTE_CalibView; + } + strcpy(&text[textPointer],"\n\r"); + textPointer += 2; + if(is_stateUsedSetToSim()) { - if((line == 0) || (line == 4)) + if((line == 0) || (line == 5)) { text[textPointer++] = TXT_2BYTE; text[textPointer++] = TXT2BYTE_SimFollowDecoStops; @@ -96,7 +104,7 @@ } else { - if((line == 0) || (line == 4)) /* end dive mode only used during real dives */ + if((line == 0) || (line == 5)) /* end dive mode only used during real dives */ { text[textPointer++] = TXT_2BYTE; text[textPointer++] = TXT2BYTE_EndDiveMode;