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