Mercurial > public > ostc4
comparison Discovery/Src/tMenu.c @ 130:b7689d9e888a FlipDisplay
Minor changes to improved code quality and to eliminate warnings
author | Ideenmodellierer |
---|---|
date | Sun, 17 Feb 2019 21:22:13 +0100 |
parents | 871baf20776b |
children | 5e41365ff0d8 |
comparison
equal
deleted
inserted
replaced
129:239aa58b533d | 130:b7689d9e888a |
---|---|
1082 { | 1082 { |
1083 uint8_t al8[2]; | 1083 uint8_t al8[2]; |
1084 uint16_t al88; | 1084 uint16_t al88; |
1085 }; | 1085 }; |
1086 | 1086 |
1087 uint16_t* prunning = *ppDestination; | 1087 uint16_t* prunning = (uint16_t*)*ppDestination; |
1088 | 1088 |
1089 union al88_u color_seperator; | 1089 union al88_u color_seperator; |
1090 union al88_u color_unselected; | 1090 union al88_u color_unselected; |
1091 int i; | 1091 int i; |
1092 | 1092 |
1105 } | 1105 } |
1106 | 1106 |
1107 *(__IO uint16_t*)prunning++ = color_seperator.al88; | 1107 *(__IO uint16_t*)prunning++ = color_seperator.al88; |
1108 *(__IO uint16_t*)prunning++ = color_seperator.al88; | 1108 *(__IO uint16_t*)prunning++ = color_seperator.al88; |
1109 | 1109 |
1110 *ppDestination = prunning; | 1110 *ppDestination = (uint32_t)prunning; |
1111 } | 1111 } |
1112 | 1112 |
1113 | 1113 |
1114 void draw_tMdesignSubSelected(uint32_t *ppDestination) | 1114 void draw_tMdesignSubSelected(uint32_t *ppDestination) |
1115 { | 1115 { |
1245 0 | 1245 0 |
1246 }; | 1246 }; |
1247 | 1247 |
1248 pBackup = tMscreen.FBStartAdress; | 1248 pBackup = tMscreen.FBStartAdress; |
1249 tMscreen.FBStartAdress = menu.StartAddressForPage[page]; | 1249 tMscreen.FBStartAdress = menu.StartAddressForPage[page]; |
1250 pDestination = menu.StartAddressForPage[page]; | 1250 pDestination = (uint16_t*) menu.StartAddressForPage[page]; |
1251 positionText = 10; | 1251 positionText = 10; |
1252 pageText = page; | 1252 pageText = page; |
1253 | 1253 |
1254 gfx_write_page_number(&tMscreen ,menu.pageCountNumber[page],menu.pageCountTotal,0); | 1254 gfx_write_page_number(&tMscreen ,menu.pageCountNumber[page],menu.pageCountTotal,0); |
1255 | 1255 |