summaryrefslogtreecommitdiff
path: root/modules/home/imhex-refresh-callback.patch
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/imhex-refresh-callback.patch')
-rw-r--r--modules/home/imhex-refresh-callback.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/home/imhex-refresh-callback.patch b/modules/home/imhex-refresh-callback.patch
new file mode 100644
index 0000000..eef0251
--- /dev/null
+++ b/modules/home/imhex-refresh-callback.patch
@@ -0,0 +1,12 @@
+diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp
+index e0469cb..114a0e9 100644
+--- a/main/gui/source/window/window.cpp
++++ b/main/gui/source/window/window.cpp
+@@ -1099,6 +1099,7 @@ namespace hex {
+ glfwSetCursorPosCallback(m_window, unlockFrameRate);
+ glfwSetMouseButtonCallback(m_window, unlockFrameRate);
+ glfwSetScrollCallback(m_window, unlockFrameRate);
++ glfwSetWindowRefreshCallback(m_window, unlockFrameRate);
+
+ glfwSetWindowFocusCallback(m_window, [](GLFWwindow *window, int focused) {
+ unlockFrameRate(window);