From: Holger Schemel Date: Tue, 12 Mar 2024 19:26:31 +0000 (+0100) Subject: fixed broken position of counter gadget to select level in editor X-Git-Tag: 4.4.0.0-test-1~195 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=682ba5529540b03ce96e3890d24fe310adee4291;p=rocksndiamonds.git fixed broken position of counter gadget to select level in editor --- diff --git a/src/editor.c b/src/editor.c index 6e240560..6da69dfd 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8250,9 +8250,12 @@ static void MapCounterButtons(int id) ModifyEditorCounterValue(id, *counterbutton_info[id].value); // set position for counter gadgets with dynamically determined position - ModifyGadget(gi_down, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); - ModifyGadget(gi_text, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); - ModifyGadget(gi_up, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + if (id != ED_COUNTER_ID_SELECT_LEVEL) + { + ModifyGadget(gi_down, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + ModifyGadget(gi_text, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + ModifyGadget(gi_up, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + } // vertical position might have changed after setting position above y = gi_up->y + yoffset;