Mercurial > public > ostc4
changeset 314:e141b571a03d Bugfix_Flip_FirmwareUpdate
Reinitialize logos after flip of display
After selection to flip the display the logos were still show in old position (upside down) in case of a parameter change or firmware update. To avoid this the logos are drawn with new orientation after flip has been selected.
author | ideenmodellierer |
---|---|
date | Mon, 17 Jun 2019 21:46:56 +0200 |
parents | 49f5db6139d5 |
children | 7420ed6c3508 |
files | Discovery/Inc/gfx_engine.h Discovery/Src/gfx_engine.c Discovery/Src/tMenuEditHardware.c |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Inc/gfx_engine.h Sat Jun 01 10:12:15 2019 +0200 +++ b/Discovery/Inc/gfx_engine.h Mon Jun 17 21:46:56 2019 +0200 @@ -182,6 +182,9 @@ void gfx_write_page_number(GFX_DrawCfgScreen *tMscreen, uint8_t page, uint8_t total, uint8_t color); void GFX_draw_image_monochrome(GFX_DrawCfgScreen *hgfx, SWindowGimpStyle window, const tImage *image, uint8_t color); +void GFX_build_logo_frame(void); +void GFX_build_hw_background_frame(void); + void GFX_logoAutoOff(void); uint8_t GFX_logoStatus(void); void GFX_hwBackgroundOn(void);
--- a/Discovery/Src/gfx_engine.c Sat Jun 01 10:12:15 2019 +0200 +++ b/Discovery/Src/gfx_engine.c Mon Jun 17 21:46:56 2019 +0200 @@ -250,7 +250,7 @@ } -static void GFX_build_hw_background_frame(void) +void GFX_build_hw_background_frame(void) { GFX_DrawCfgScreen tLogoTemp; SWindowGimpStyle windowGimp; @@ -284,7 +284,7 @@ } -static void GFX_build_logo_frame(void) +void GFX_build_logo_frame(void) { GFX_DrawCfgScreen tLogoTemp; SWindowGimpStyle windowGimp;
--- a/Discovery/Src/tMenuEditHardware.c Sat Jun 01 10:12:15 2019 +0200 +++ b/Discovery/Src/tMenuEditHardware.c Mon Jun 17 21:46:56 2019 +0200 @@ -134,7 +134,8 @@ tMenuEdit_init(); tInfoLog_init(); tM_build_pages(); - + GFX_build_logo_frame(); + GFX_build_hw_background_frame(); exitEditWithUpdate(); exitMenuEdit_to_Home();