From 29bc76873e319e79a78196d13386f7e4c85aaddd Mon Sep 17 00:00:00 2001 From: aybe Date: Wed, 10 Jul 2024 05:19:00 +0200 Subject: [PATCH] Fix: min/max not found on Linux --- src/libs/gui_tk/gui_tk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/gui_tk/gui_tk.cpp b/src/libs/gui_tk/gui_tk.cpp index 0cb4534ea3..c6f513ce7e 100644 --- a/src/libs/gui_tk/gui_tk.cpp +++ b/src/libs/gui_tk/gui_tk.cpp @@ -2879,7 +2879,7 @@ bool WindowInWindow::mouseDoubleClicked(int x, int y, MouseButton button) { bool WindowInWindow::mouseWheel(int wheel) { // BUG requires to click at least once in window for it to work - scroll_pos_y = min(max(scroll_pos_y - wheel * 15, 0), scroll_pos_h); + scroll_pos_y = imin(imax(scroll_pos_y - wheel * 15, 0), scroll_pos_h); return Window::mouseWheel(wheel); }