mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Prevent canvas flickering in web build
This commit is contained in:
@@ -87,6 +87,7 @@ namespace hex {
|
||||
|
||||
glfwSetWindowRefreshCallback(m_window, [](GLFWwindow *window) {
|
||||
auto win = static_cast<Window *>(glfwGetWindowUserPointer(window));
|
||||
resizeCanvas();
|
||||
win->fullFrame();
|
||||
});
|
||||
|
||||
|
||||
@@ -844,7 +844,8 @@ namespace hex {
|
||||
if (macosIsWindowBeingResizedByUser(window)) {
|
||||
ImGui::GetIO().MousePos = ImVec2();
|
||||
}
|
||||
#else
|
||||
#elif defined(OS_WEB)
|
||||
win->fullFrame();
|
||||
#endif
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user