From 77f213e63c0f5de54f42e99b874d72d2de345690 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 3 Jan 2023 17:26:50 +1100 Subject: [PATCH] Decompress both fonts correctly --- source/Core/Inc/Translation.h | 3 ++- source/Core/LangSupport/lang_multi.cpp | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/Core/Inc/Translation.h b/source/Core/Inc/Translation.h index 68d5a75c..01624fe3 100644 --- a/source/Core/Inc/Translation.h +++ b/source/Core/Inc/Translation.h @@ -7,7 +7,8 @@ #ifndef TRANSLATION_H_ #define TRANSLATION_H_ -#include "stdint.h" +#include +#include extern const bool HasFahrenheit; diff --git a/source/Core/LangSupport/lang_multi.cpp b/source/Core/LangSupport/lang_multi.cpp index 121459f7..44e28ad2 100644 --- a/source/Core/LangSupport/lang_multi.cpp +++ b/source/Core/LangSupport/lang_multi.cpp @@ -51,16 +51,15 @@ void prepareTranslations() { } Tr = &translationData->indices; TranslationStrings = translationData->strings; - // Font 12 can be compressed; if it is then we want to decompress it to ram + // Font 12 can be compressed; if it is then we want to decompress it to ram if (FontSectionInfo.font12_compressed_source != NULL) { - unsigned int outsize; - outsize = blz_depack(FontSectionInfo.font06_compressed_source, (uint8_t *)FontSectionInfo.font12_start_ptr, FontSectionInfo.font12_decompressed_size); + blz_depack(FontSectionInfo.font12_compressed_source, (uint8_t *)FontSectionInfo.font12_start_ptr, FontSectionInfo.font12_decompressed_size); } + // Font 06 can be compressed; if it is then we want to decompress it to ram if (FontSectionInfo.font06_compressed_source != NULL) { - unsigned int outsize; - outsize = blz_depack(FontSectionInfo.font06_compressed_source, (uint8_t *)FontSectionInfo.font06_start_ptr, FontSectionInfo.font06_decompressed_size); + blz_depack(FontSectionInfo.font06_compressed_source, (uint8_t *)FontSectionInfo.font06_start_ptr, FontSectionInfo.font06_decompressed_size); } }