Skip to content

Commit

Permalink
OpenCanopy: Rename Font.* to Font_1x.* to avoid name conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed May 5, 2020
1 parent b4e2820 commit 5b0925a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Platform/OpenCanopy/BitmapFont.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,10 @@ GuiFontDestruct (
ASSERT (Context != NULL);
if (Context->FontImage.Buffer != NULL) {
FreePool (Context->FontImage.Buffer);
Context->FontImage.Buffer = NULL;
}
if (Context->KerningData != NULL) {
FreePool (Context->KerningData);
Context->KerningData = NULL;
}
}
4 changes: 2 additions & 2 deletions Platform/OpenCanopy/GuiApp.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ InternalContextConstruct (
FontImage = OcStorageReadFileUnicode (Storage, OPEN_CORE_FONT_PATH L"Font_2x.png", &FontImageSize);
FontData = OcStorageReadFileUnicode (Storage, OPEN_CORE_FONT_PATH L"Font_2x.bin", &FontDataSize);
} else {
FontImage = OcStorageReadFileUnicode (Storage, OPEN_CORE_FONT_PATH L"Font.png", &FontImageSize);
FontData = OcStorageReadFileUnicode (Storage, OPEN_CORE_FONT_PATH L"Font.bin", &FontDataSize);
FontImage = OcStorageReadFileUnicode (Storage, OPEN_CORE_FONT_PATH L"Font_1x.png", &FontImageSize);
FontData = OcStorageReadFileUnicode (Storage, OPEN_CORE_FONT_PATH L"Font_1x.bin", &FontDataSize);
}

if (FontImage != NULL && FontData != NULL) {
Expand Down

0 comments on commit 5b0925a

Please sign in to comment.