X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=cea409513013fdb6a051fa5ec5e87389ba160637;hb=e23b36169cfbf393cfecc7d19257e338a915a232;hp=798fc2bbaab320109c9ed54a94fdb160aef5423f;hpb=9acc4e299380743e7a49ab26ad397274aecdbfe6;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 798fc2bb..cea40951 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11470,7 +11470,7 @@ static void SetRandomLevelColors_BD(void) level.bd_color_5 = cave->color5; } -static void DrawColorBox(int nr) +static void DrawColorBox_BD(int nr) { int id = ED_SELECTBOX_ID_COLORS_FIRST + nr; struct GadgetInfo *gi = level_editor_gadget[selectbox_info[id].gadget_id]; @@ -11550,7 +11550,7 @@ static void DrawEngineConfigColors(void) } for (i = 0; i < MAX_BD_COLORS; i++) - DrawColorBox(i); + DrawColorBox_BD(i); MapTextbuttonGadget(ED_TEXTBUTTON_ID_BD_SET_RANDOM_COLORS); } @@ -16369,6 +16369,8 @@ static void HandleTextInputGadgets(struct GadgetInfo *gi) int pos = type_id - ED_TEXTINPUT_ID_COLORS_FIRST; *bd_color[pos] = gd_color_get_from_string(bd_color_text[pos]); + + DrawColorBox_BD(pos); } // do not mark level as modified for certain non-level-changing gadgets @@ -16467,6 +16469,8 @@ static void HandleSelectboxGadgets(struct GadgetInfo *gi) int pos = type_id - ED_SELECTBOX_ID_COLORS_FIRST; *bd_color[pos] = gd_c64_color(bd_color_c64[pos]); + + DrawColorBox_BD(pos); } // do not mark level as modified for certain non-level-changing gadgets