From ceaf24268cce47d6ec985b4abedb3c26e6048834 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Wed, 24 Apr 2024 10:05:02 -0700 Subject: [PATCH] Hopefully fix non-web builds. --- backends/ui/imgui/RendererBackend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/ui/imgui/RendererBackend.cpp b/backends/ui/imgui/RendererBackend.cpp index cd20732..1ef7f11 100644 --- a/backends/ui/imgui/RendererBackend.cpp +++ b/backends/ui/imgui/RendererBackend.cpp @@ -215,9 +215,11 @@ void RendererBackend::AddFonts() { title = add_font(vector({FontData {notosans_thin_compressed_data_base85, io.Fonts->GetGlyphRangesDefault()}, FontData {notosansjp_thin_compressed_data_base85, io.Fonts->GetGlyphRangesJapanese()}}), 48 * scale); ImGui_ImplOpenGL3_CreateFontsTexture(); } +#ifdef __EMSCRIPTEN__ static EM_BOOL resize_callback(int event_type, const EmscriptenUiEvent *event, void *userdata) { RendererBackend::resize_static(); } +#endif int RendererBackend::Run() { setlocale(LC_ALL, ""); bindtextdomain("neko_player", LOCALE_DIR);