| | 127 | |
| | 128 | 3. Modify functions that do display operations such as shown: |
| | 129 | |
| | 130 | {{{ |
| | 131 | void ShowGTN(void) { |
| | 132 | |
| | 133 | #if ARM64 |
| | 134 | SetCurColor(COLOR_INFO); |
| | 135 | SetBkColor(nColorWhite); |
| | 136 | fontBigLabel.DisplayText(rectWtLbl[WT_INDEX_GROSS], LANG(STR_GROSS_LABEL)); |
| | 137 | |
| | 138 | if (curScale >= 0 && GetWtMode(curScale) == wtmode_net) { |
| | 139 | fontBigLabel.DisplayText(rectWtLbl[WT_INDEX_TARE], LANG(STR_TARE_LABEL)); |
| | 140 | fontBigLabel.DisplayText(rectWtLbl[WT_INDEX_NET], LANG(STR_NET_LABEL)); |
| | 141 | } |
| | 142 | |
| | 143 | #else |
| | 144 | SetCurColor(nColorGreen); |
| | 145 | SetBkColor(nColorBlack); |
| | 146 | DisplayText(GROSS_LBL_X, GROSS_WT_Y, LANG(STR_GROSS_LABEL), 0, BIG_FONT); |
| | 147 | |
| | 148 | if (curScale >= 0 && GetWtMode(curScale) == wtmode_net) { |
| | 149 | DisplayText(TARE_LBL_X, TARE_WT_Y, LANG(STR_TARE_LABEL), 0, BIG_FONT); |
| | 150 | DisplayText(NET_LBL_X, NET_WT_Y, LANG(STR_NET_LABEL), 0, BIG_FONT); |
| | 151 | } |
| | 152 | SetBkColor(nColorBlack); |
| | 153 | #endif |
| | 154 | } |
| | 155 | |
| | 156 | }}} |