Decompress both fonts correctly
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
#ifndef TRANSLATION_H_
|
#ifndef TRANSLATION_H_
|
||||||
#define TRANSLATION_H_
|
#define TRANSLATION_H_
|
||||||
#include "stdint.h"
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
extern const bool HasFahrenheit;
|
extern const bool HasFahrenheit;
|
||||||
|
|
||||||
|
|||||||
@@ -51,16 +51,15 @@ void prepareTranslations() {
|
|||||||
}
|
}
|
||||||
Tr = &translationData->indices;
|
Tr = &translationData->indices;
|
||||||
TranslationStrings = translationData->strings;
|
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) {
|
if (FontSectionInfo.font12_compressed_source != NULL) {
|
||||||
unsigned int outsize;
|
blz_depack(FontSectionInfo.font12_compressed_source, (uint8_t *)FontSectionInfo.font12_start_ptr, FontSectionInfo.font12_decompressed_size);
|
||||||
outsize = blz_depack(FontSectionInfo.font06_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) {
|
if (FontSectionInfo.font06_compressed_source != NULL) {
|
||||||
unsigned int outsize;
|
blz_depack(FontSectionInfo.font06_compressed_source, (uint8_t *)FontSectionInfo.font06_start_ptr, FontSectionInfo.font06_decompressed_size);
|
||||||
outsize = blz_depack(FontSectionInfo.font06_compressed_source, (uint8_t *)FontSectionInfo.font06_start_ptr, FontSectionInfo.font06_decompressed_size);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user