Mercurial > public > ostc4
comparison Discovery/Src/t7.c @ 510:0004704906d0
Display warning in t7 using centered strings
author | Ideenmodellierer |
---|---|
date | Sun, 30 Aug 2020 17:26:52 +0200 |
parents | cf06c12c06d1 |
children | 85e0945552ce |
comparison
equal
deleted
inserted
replaced
509:56824129dd56 | 510:0004704906d0 |
---|---|
1408 text[4] = 0; | 1408 text[4] = 0; |
1409 GFX_write_string(&FontT42,&t7cH,text,0); | 1409 GFX_write_string(&FontT42,&t7cH,text,0); |
1410 | 1410 |
1411 textpointer = 0; | 1411 textpointer = 0; |
1412 lineFree = 5; | 1412 lineFree = 5; |
1413 | 1413 text[textpointer++] = '\001'; |
1414 if(lineFree && stateUsed->warnings.decoMissed) | 1414 if(lineFree && stateUsed->warnings.decoMissed) |
1415 { | 1415 { |
1416 text[textpointer++] = TXT_2BYTE; | 1416 text[textpointer++] = TXT_2BYTE; |
1417 text[textpointer++] = TXT2BYTE_WarnDecoMissed; | 1417 text[textpointer++] = TXT2BYTE_WarnDecoMissed; |
1418 text[textpointer++] = '\n'; | 1418 text[textpointer++] = '\n'; |
1587 { | 1587 { |
1588 switch(action) | 1588 switch(action) |
1589 { | 1589 { |
1590 case ACTION_BUTTON_ENTER: | 1590 case ACTION_BUTTON_ENTER: |
1591 case ACTION_PITCH_POS: | 1591 case ACTION_PITCH_POS: |
1592 if(*pViews != CVIEW_T3_END) | 1592 if(*pViews != CVIEW_END) |
1593 pViews++; | 1593 pViews++; |
1594 if(*pViews == CVIEW_T3_END) | 1594 if(*pViews == CVIEW_END) |
1595 { | 1595 { |
1596 pViews = pStartView; | 1596 pViews = pStartView; |
1597 } | 1597 } |
1598 break; | 1598 break; |
1599 case ACTION_PITCH_NEG: | 1599 case ACTION_PITCH_NEG: |