Mercurial > public > ostc4
comparison Discovery/Src/gfx_engine.c @ 583:3860b8fa4b29
Solved minor warnings
author | Ideenmodellierer |
---|---|
date | Sat, 12 Dec 2020 20:54:31 +0100 |
parents | 1c95f811967c |
children | 3a6f922b73ea |
comparison
equal
deleted
inserted
replaced
582:64bf41faab83 | 583:3860b8fa4b29 |
---|---|
3080 static uint32_t GFX_write__Modify_Xdelta__Centered(GFX_CfgWriteString* cfg, GFX_DrawCfgWindow* hgfx, const char *pTextInput) | 3080 static uint32_t GFX_write__Modify_Xdelta__Centered(GFX_CfgWriteString* cfg, GFX_DrawCfgWindow* hgfx, const char *pTextInput) |
3081 { | 3081 { |
3082 char cText[101]; | 3082 char cText[101]; |
3083 uint32_t result; | 3083 uint32_t result; |
3084 uint32_t Xsum; | 3084 uint32_t Xsum; |
3085 uint32_t i, j; | 3085 uint32_t j; |
3086 uint8_t gfx_selected_language; | 3086 uint8_t gfx_selected_language; |
3087 uint32_t pText; | 3087 uint32_t pText; |
3088 uint16_t decodeUTF8; | 3088 uint16_t decodeUTF8; |
3089 uint8_t tinyState = 0; /* used to identify the usage of tiny font */ | 3089 uint8_t tinyState = 0; /* used to identify the usage of tiny font */ |
3090 tFont* ptargetFont; | 3090 tFont* ptargetFont; |
3169 static uint32_t GFX_write__Modify_Xdelta__RightAlign(GFX_CfgWriteString* cfg, GFX_DrawCfgWindow* hgfx, const char *pTextInput) | 3169 static uint32_t GFX_write__Modify_Xdelta__RightAlign(GFX_CfgWriteString* cfg, GFX_DrawCfgWindow* hgfx, const char *pTextInput) |
3170 { | 3170 { |
3171 char cText[101]; | 3171 char cText[101]; |
3172 uint32_t result; | 3172 uint32_t result; |
3173 uint32_t Xsum; | 3173 uint32_t Xsum; |
3174 uint32_t i, j; | 3174 uint32_t j; |
3175 tFont *font; | 3175 tFont *font; |
3176 uint8_t gfx_selected_language; | 3176 uint8_t gfx_selected_language; |
3177 uint32_t pText; | 3177 uint32_t pText; |
3178 uint8_t setToTinyFont = 0; | |
3179 uint16_t decodeUTF8; | 3178 uint16_t decodeUTF8; |
3180 uint8_t tinyState = 0; /* used to identify the usage of tiny font */ | 3179 uint8_t tinyState = 0; /* used to identify the usage of tiny font */ |
3181 | 3180 |
3182 #ifndef BOOTLOADER_STANDALONE | 3181 #ifndef BOOTLOADER_STANDALONE |
3183 SSettings *pSettings; | 3182 SSettings *pSettings; |
3191 GFX_write__Modify_helper(cText,pTextInput,gfx_selected_language); | 3190 GFX_write__Modify_helper(cText,pTextInput,gfx_selected_language); |
3192 pText = (uint32_t)&cText[0]; | 3191 pText = (uint32_t)&cText[0]; |
3193 | 3192 |
3194 // ----------------------------- | 3193 // ----------------------------- |
3195 | 3194 |
3196 setToTinyFont = 0; | |
3197 font = (tFont *)cfg->font; | 3195 font = (tFont *)cfg->font; |
3198 Xsum = 0; | 3196 Xsum = 0; |
3199 j = 0; | 3197 j = 0; |
3200 | 3198 |
3201 while (*(char*)pText != 0)// und fehlend: Abfrage window / image size | 3199 while (*(char*)pText != 0)// und fehlend: Abfrage window / image size |