From 26c39d68221479a71c27f0d0ff0b7361b19c4697 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 26 Dec 2024 20:19:55 +0100 Subject: [PATCH] fix: `ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback` -> `ImGui_ImplGlfw_InstallEmscriptenCallbacks` --- main/gui/source/init/splash_window.cpp | 2 +- main/gui/source/window/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/gui/source/init/splash_window.cpp b/main/gui/source/init/splash_window.cpp index 93868fa02..5dd0a580c 100644 --- a/main/gui/source/init/splash_window.cpp +++ b/main/gui/source/init/splash_window.cpp @@ -497,7 +497,7 @@ namespace hex::init { ImGui_ImplOpenGL3_Init("#version 150"); #elif defined(OS_WEB) ImGui_ImplOpenGL3_Init(); - ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback("#canvas"); + ImGui_ImplGlfw_InstallEmscriptenCallbacks("#canvas"); #else ImGui_ImplOpenGL3_Init("#version 130"); #endif diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index b3cc5cece..2e8b67686 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -1042,7 +1042,7 @@ namespace hex { ImGui_ImplOpenGL3_Init("#version 150"); #elif defined(OS_WEB) ImGui_ImplOpenGL3_Init(); - ImGui_ImplGlfw_InstallEmscriptenCanvasResizeCallback("#canvas"); + ImGui_ImplGlfw_InstallEmscriptenCallbacks("#canvas"); #else ImGui_ImplOpenGL3_Init("#version 130"); #endif