Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditPlanner.c @ 525:1f557e5f4b5a
Change color ID used in strings for light grey:
CLUT of id 21 and 31 were the same. Changed CLUT of 21 back to a dark grey (used to show off state) and updated strings to 31 => No visible change in menus
author | Ideenmodellierer |
---|---|
date | Sun, 13 Sep 2020 20:49:58 +0200 |
parents | 255eedad4155 |
children | 1c95f811967c |
comparison
equal
deleted
inserted
replaced
524:b33a8c1c72e5 | 525:1f557e5f4b5a |
---|---|
491 text[textptr++] = '_'; | 491 text[textptr++] = '_'; |
492 } | 492 } |
493 textptr += snprintf(&text[textptr],20," %3i'", lengthInMinutes); | 493 textptr += snprintf(&text[textptr],20," %3i'", lengthInMinutes); |
494 } | 494 } |
495 else | 495 else |
496 textptr = snprintf(text,20,"\021\034%2u\016\016m\017 ",depthNext); | 496 textptr = snprintf(text,20,"\031\034%2u\016\016m\017 ",depthNext); |
497 | 497 |
498 for(int i = 0; i < ListCount; i++) | 498 for(int i = 0; i < ListCount; i++) |
499 { | 499 { |
500 if(stateSimGetPointer()->diveSettings.decogaslist[GasIdNextList[i]].setPoint_cbar != stateSimGetPointer()->diveSettings.decogaslist[GasIdPrev].setPoint_cbar) | 500 if(stateSimGetPointer()->diveSettings.decogaslist[GasIdNextList[i]].setPoint_cbar != stateSimGetPointer()->diveSettings.decogaslist[GasIdPrev].setPoint_cbar) |
501 snprintf(&text[textptr],20," %01.2f ", ((float)(stateSimGetPointer()->diveSettings.decogaslist[GasIdNextList[i]].setPoint_cbar))/100); | 501 snprintf(&text[textptr],20," %01.2f ", ((float)(stateSimGetPointer()->diveSettings.decogaslist[GasIdNextList[i]].setPoint_cbar))/100); |
628 textpointer = 0; | 628 textpointer = 0; |
629 *text = 0; | 629 *text = 0; |
630 text[textpointer] = 0; | 630 text[textpointer] = 0; |
631 | 631 |
632 if(tMplan_pGasConsumption[j] == 0) | 632 if(tMplan_pGasConsumption[j] == 0) |
633 text[textpointer++] = '\021'; | 633 text[textpointer++] = '\031'; |
634 | 634 |
635 textpointer += write_gas(&text[textpointer], settingsGetPointer()->gas[j].oxygen_percentage, settingsGetPointer()->gas[j].helium_percentage ); | 635 textpointer += write_gas(&text[textpointer], settingsGetPointer()->gas[j].oxygen_percentage, settingsGetPointer()->gas[j].helium_percentage ); |
636 text[textpointer] = 0; | 636 text[textpointer] = 0; |
637 write_label_var( 10, 390, y_line, &FontT42, text); | 637 write_label_var( 10, 390, y_line, &FontT42, text); |
638 | 638 |
639 textpointer = 0; | 639 textpointer = 0; |
640 *text = 0; | 640 *text = 0; |
641 text[textpointer] = 0; | 641 text[textpointer] = 0; |
642 | 642 |
643 if(tMplan_pGasConsumption[j] == 0) | 643 if(tMplan_pGasConsumption[j] == 0) |
644 text[textpointer++] = '\021'; | 644 text[textpointer++] = '\031'; |
645 | 645 |
646 textpointer += snprintf(&text[textpointer],20,"\002%u\016\016 ltr\017",tMplan_pGasConsumption[j]); | 646 textpointer += snprintf(&text[textpointer],20,"\002%u\016\016 ltr\017",tMplan_pGasConsumption[j]); |
647 text[textpointer] = 0; | 647 text[textpointer] = 0; |
648 write_label_var( 350, 560, y_line, &FontT42, text); | 648 write_label_var( 350, 560, y_line, &FontT42, text); |
649 } | 649 } |