From e3c2e831445a3316b551f5ea73059159e4b47f3f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 6 Nov 2023 00:57:56 +0200 Subject: [PATCH 21/21] sdl3: Replace SDL_MOUSEBUTTONDOWN with SDL_EVENT_MOUSE_BUTTON_DOWN See osdn #48950 Signed-off-by: Marko Lindqvist --- client/gui-sdl3/wldlg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/gui-sdl3/wldlg.c b/client/gui-sdl3/wldlg.c index 8294a8ad90..efd45672df 100644 --- a/client/gui-sdl3/wldlg.c +++ b/client/gui-sdl3/wldlg.c @@ -410,7 +410,7 @@ static void get_target_help_data(struct widget *target) **************************************************************************/ static int worklist_editor_targets_callback(struct widget *pwidget) { - if (main_data.event.type == SDL_MOUSEBUTTONDOWN) { + if (main_data.event.type == SDL_EVENT_MOUSE_BUTTON_DOWN) { switch (main_data.event.button.button) { case SDL_BUTTON_LEFT: if (editor->pcity) { @@ -634,7 +634,7 @@ static void swap_item_up_from_worklist(struct widget *item) **************************************************************************/ static int worklist_editor_item_callback(struct widget *pwidget) { - if (main_data.event.type == SDL_MOUSEBUTTONDOWN) { + if (main_data.event.type == SDL_EVENT_MOUSE_BUTTON_DOWN) { switch (main_data.event.button.button) { case SDL_BUTTON_LEFT: swap_item_up_from_worklist(pwidget); @@ -846,7 +846,7 @@ static void set_global_worklist(struct widget *pwidget) **************************************************************************/ static int global_worklist_callback(struct widget *pwidget) { - if (main_data.event.type == SDL_MOUSEBUTTONDOWN) { + if (main_data.event.type == SDL_EVENT_MOUSE_BUTTON_DOWN) { switch (main_data.event.button.button) { case SDL_BUTTON_LEFT: add_global_worklist(pwidget); -- 2.42.0