From a0bf1f7caa9235d7f86898a216f0b8449bf08023 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 1 Apr 2023 12:50:02 +0200 Subject: [PATCH] fixed custom element change page gadget events in level editor --- src/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index 8e66e99c..fc122b24 100644 --- a/src/editor.c +++ b/src/editor.c @@ -7050,7 +7050,7 @@ static void CreateGraphicbuttonGadgets(void) int gd_y1 = gd->src_y; int gd_x2 = gd->src_x + gd->pressed_xoffset; int gd_y2 = gd->src_y + gd->pressed_yoffset; - unsigned int event_mask = GD_EVENT_PRESSED | GD_EVENT_REPEATED; + unsigned int event_mask = GD_EVENT_RELEASED; // determine horizontal position to the right of specified gadget if (graphicbutton_info[i].gadget_id_align != GADGET_ID_NONE) -- 2.34.1