Skip to content

Commit

Permalink
Decompress both fonts correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Jan 3, 2023
1 parent afb7628 commit 77f213e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion source/Core/Inc/Translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

#ifndef TRANSLATION_H_
#define TRANSLATION_H_
#include "stdint.h"
#include <stdbool.h>
#include <stdint.h>

extern const bool HasFahrenheit;

Expand Down
9 changes: 4 additions & 5 deletions source/Core/LangSupport/lang_multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 77f213e

Please sign in to comment.