mirror of https://github.com/AxioDL/metaforce.git
ImGuiEngine: Minor cleanup
This commit is contained in:
parent
edf18d47d7
commit
7903213ff5
|
@ -31,10 +31,12 @@ void ImGuiEngine_Initialize(float scale) {
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
|
|
||||||
auto* fontData = new uint8_t[NOTO_MONO_FONT_DECOMPRESSED_SZ];
|
auto* fontData = new uint8_t[NOTO_MONO_FONT_DECOMPRESSED_SZ];
|
||||||
metaforce::CMemoryInStream memStream(static_cast<const u8*>(NOTO_MONO_FONT), NOTO_MONO_FONT_SZ,
|
{
|
||||||
metaforce::CMemoryInStream::EOwnerShip::NotOwned);
|
auto stream = std::make_unique<metaforce::CMemoryInStream>(
|
||||||
metaforce::CZipInputStream zipInputStream(std::make_unique<metaforce::CMemoryInStream>(memStream));
|
static_cast<const u8*>(NOTO_MONO_FONT), NOTO_MONO_FONT_SZ, metaforce::CMemoryInStream::EOwnerShip::NotOwned);
|
||||||
zipInputStream.Get(fontData, NOTO_MONO_FONT_DECOMPRESSED_SZ);
|
metaforce::CZipInputStream zipInputStream{std::move(stream)};
|
||||||
|
zipInputStream.Get(fontData, NOTO_MONO_FONT_DECOMPRESSED_SZ);
|
||||||
|
}
|
||||||
|
|
||||||
ImFontConfig fontConfig{};
|
ImFontConfig fontConfig{};
|
||||||
fontConfig.FontData = fontData;
|
fontConfig.FontData = fontData;
|
||||||
|
|
Loading…
Reference in New Issue