From: Holger Schemel Date: Wed, 15 Jan 2025 18:12:35 +0000 (+0100) Subject: fixed setting screen position of "set random colors" button in editor X-Git-Tag: 4.4.0.1~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f0dff67354e7770a68de8d2eb06481ba6426022e;p=rocksndiamonds.git fixed setting screen position of "set random colors" button in editor --- diff --git a/src/editor.c b/src/editor.c index ad28f10f..8c1747c9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12026,12 +12026,9 @@ static void DrawEngineConfigColors(void) for (i = 0; i < MAX_BD_COLORS - skip; i++) DrawColorBox_BD(i); - if (skip > 0) - { - struct GadgetInfo *gi = level_editor_gadget[GADGET_ID_BD_SET_RANDOM_COLORS]; + struct GadgetInfo *gi = level_editor_gadget[GADGET_ID_BD_SET_RANDOM_COLORS]; - ModifyGadget(gi, GDI_Y, SY + ED_SETTINGS_Y(ED_ENGINE_SETTINGS_YPOS(7)), GDI_END); - } + ModifyGadget(gi, GDI_Y, SY + ED_SETTINGS_Y(ED_ENGINE_SETTINGS_YPOS(9 - skip)), GDI_END); MapTextbuttonGadget(ED_TEXTBUTTON_ID_BD_SET_RANDOM_COLORS); }