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);