Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditCustom.c @ 737:5071d554aaa5
NEW: Add mini compass with marker declination indication
Contribution from mikeller
author | heinrichsweikamp |
---|---|
date | Mon, 06 Mar 2023 16:03:00 +0100 |
parents | 10b7d271b9c4 |
children | 4a6bffaa38b3 |
comparison
equal
deleted
inserted
replaced
736:8a2337c7af52 | 737:5071d554aaa5 |
---|---|
173 #ifdef ENABLE_PSCR_MODE | 173 #ifdef ENABLE_PSCR_MODE |
174 case LCC_SimPpo2: | 174 case LCC_SimPpo2: |
175 text[4] = TXT_SimPpo2; | 175 text[4] = TXT_SimPpo2; |
176 break; | 176 break; |
177 #endif | 177 #endif |
178 case LLC_Compass: | |
179 text[4] = TXT_2BYTE; | |
180 text[5] = TXT2BYTE_Compass; | |
181 | |
182 break; | |
178 /* none */ | 183 /* none */ |
179 case LLC_Empty: | 184 case LLC_Empty: |
180 text[4] = '-'; | 185 text[4] = '-'; |
181 break; | 186 break; |
182 default: | 187 default: |
183 text[4] = 'X'; | 188 text[4] = 'X'; |
184 break; | 189 break; |
185 } | 190 } |
186 text[5] = 0; | 191 if (text[4] != TXT_2BYTE) { |
192 text[5] = 0; | |
193 } else { | |
194 text[6] = 0; | |
195 } | |
196 | |
187 write_label_var( 30, 700, ME_Y_LINE6, &FontT48, text); | 197 write_label_var( 30, 700, ME_Y_LINE6, &FontT48, text); |
188 | 198 |
189 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); | 199 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
190 } | 200 } |
191 | 201 |