Skip to content

Commit

Permalink
Fix: min/max not found on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
aybe committed Jul 10, 2024
1 parent 8d56ebb commit 29bc768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/gui_tk/gui_tk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 29bc768

Please sign in to comment.