changed u_int8_t to int due to consistancy and for mingw

This commit is contained in:
KlausMu 2024-04-09 12:49:47 +02:00 committed by Klaus Musch
parent ef162cde24
commit 3b5e8b5c39
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ tab_in_memory tabs_in_memory[3] = {{NULL, -1, ""}, {NULL, -1, ""}, {NULL, -1, ""
// holds the ids of the tabs we had in memory before, so that we can determine the next or previous id // holds the ids of the tabs we had in memory before, so that we can determine the next or previous id
int tabs_in_memory_previous_listIndex[3]= {-1 , -1, -1}; int tabs_in_memory_previous_listIndex[3]= {-1 , -1, -1};
bool gui_memoryOptimizer_isTabIDInMemory(u_int8_t tabID) { bool gui_memoryOptimizer_isTabIDInMemory(int tabID) {
// range check // range check
if ((tabID < 0) || (tabID >= 3)) { if ((tabID < 0) || (tabID >= 3)) {
return false; return false;

View file

@ -2,5 +2,5 @@
void gui_memoryOptimizer_prepare_startup(); void gui_memoryOptimizer_prepare_startup();
void gui_memoryOptimizer_doAfterSliding_deletionAndCreation(lv_obj_t** tabview, int oldTabID, int newTabID, bool newGuiList, lv_obj_t** panel, lv_obj_t** img1, lv_obj_t** img2); void gui_memoryOptimizer_doAfterSliding_deletionAndCreation(lv_obj_t** tabview, int oldTabID, int newTabID, bool newGuiList, lv_obj_t** panel, lv_obj_t** img1, lv_obj_t** img2);
bool gui_memoryOptimizer_isTabIDInMemory(u_int8_t tabID); bool gui_memoryOptimizer_isTabIDInMemory(int tabID);
bool gui_memoryOptimizer_isGUInameInMemory(std::string guiName); bool gui_memoryOptimizer_isGUInameInMemory(std::string guiName);