mouse: put the row/column arguments in the proper order [coverity scan]

(This one call was overlooked in commit f5c87a7f that changed the order.)

This makes clicking on the Yes/No/All/Cancel menu items work again.
master
Benno Schulenberg 2018-07-14 20:46:50 +02:00
parent d994af0334
commit 3227ba46d9
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ int do_yesno_prompt(bool all, const char *msg)
else if (kbinput == KEY_MOUSE) { else if (kbinput == KEY_MOUSE) {
int mouse_x, mouse_y; int mouse_x, mouse_y;
/* We can click on the Yes/No/All shortcuts to select an answer. */ /* We can click on the Yes/No/All shortcuts to select an answer. */
if (get_mouseinput(&mouse_x, &mouse_y, FALSE) == 0 && if (get_mouseinput(&mouse_y, &mouse_x, FALSE) == 0 &&
wmouse_trafo(bottomwin, &mouse_y, &mouse_x, FALSE) && wmouse_trafo(bottomwin, &mouse_y, &mouse_x, FALSE) &&
mouse_x < (width * 2) && mouse_y > 0) { mouse_x < (width * 2) && mouse_y > 0) {
int x = mouse_x / width; int x = mouse_x / width;