X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=7b066ee9741e44497b7fac6f37b3e4f959f30717;hb=234748b5eb0bc4fe29a36fd25a1d25658f53858a;hp=ec814f42a0f2ed7d6674223738409a97ed359689;hpb=2455ce294b0108d3a848467ea9d30d049527a545;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index ec814f42..7b066ee9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -1490,7 +1490,7 @@ static void CreateControlButtons() gd_x2 = DOOR_GFX_PAGEX6 + ED_ELEMENTLIST_XPOS; gd_y = DOOR_GFX_PAGEY1 + ED_ELEMENTLIST_YPOS; - getMiniGraphicSource(el2gfx(editor_element[i]), + getMiniGraphicSource(el2img(editor_element[i]), &deco_bitmap, &deco_x, &deco_y); deco_xpos = (ED_ELEMENTLIST_XSIZE - MINI_TILEX) / 2; deco_ypos = (ED_ELEMENTLIST_YSIZE - MINI_TILEY) / 2; @@ -2143,13 +2143,13 @@ void DrawLevelEd() /* draw mouse button brush elements */ DrawMiniGraphicExt(drawto, DX + ED_WIN_MB_LEFT_XPOS, DY + ED_WIN_MB_LEFT_YPOS, - el2gfx(new_element1)); + el2img(new_element1)); DrawMiniGraphicExt(drawto, DX + ED_WIN_MB_MIDDLE_XPOS, DY + ED_WIN_MB_MIDDLE_YPOS, - el2gfx(new_element2)); + el2img(new_element2)); DrawMiniGraphicExt(drawto, DX + ED_WIN_MB_RIGHT_XPOS, DY + ED_WIN_MB_RIGHT_YPOS, - el2gfx(new_element3)); + el2img(new_element3)); /* draw bigger door */ DrawSpecialEditorDoor(); @@ -2322,21 +2322,21 @@ static void PickDrawingElement(int button, int element) new_element1 = element; DrawMiniGraphicExt(drawto, DX + ED_WIN_MB_LEFT_XPOS, DY + ED_WIN_MB_LEFT_YPOS, - el2gfx(new_element1)); + el2img(new_element1)); } else if (button == 2) { new_element2 = element; DrawMiniGraphicExt(drawto, DX + ED_WIN_MB_MIDDLE_XPOS, DY + ED_WIN_MB_MIDDLE_YPOS, - el2gfx(new_element2)); + el2img(new_element2)); } else { new_element3 = element; DrawMiniGraphicExt(drawto, DX + ED_WIN_MB_RIGHT_XPOS, DY + ED_WIN_MB_RIGHT_YPOS, - el2gfx(new_element3)); + el2img(new_element3)); } redraw_mask |= REDRAW_DOOR_1; @@ -2681,7 +2681,7 @@ static void DrawPropertiesWindow() SX + xstart * MINI_TILEX - MINI_TILEX/2, SY + ystart * MINI_TILEY - MINI_TILEY/2); - DrawGraphic(xstart/2, ystart/2, el2gfx(properties_element)); + DrawGraphic(xstart / 2, ystart / 2, el2img(properties_element), 0); /* copy the whole stuff to the definitive location */ BlitBitmap(drawto, drawto, @@ -3474,11 +3474,11 @@ static void HandleDrawingAreas(struct GadgetInfo *gi) DrawMiniGraphicExt(drawto, gi->x + sx * MINI_TILEX, gi->y + sy * MINI_TILEY, - el2gfx(new_element)); + el2img(new_element)); DrawMiniGraphicExt(window, gi->x + sx * MINI_TILEX, gi->y + sy * MINI_TILEY, - el2gfx(new_element)); + el2img(new_element)); if (id == GADGET_ID_AMOEBA_CONTENT) level.amoeba_content = new_element; @@ -3800,7 +3800,7 @@ static void HandleControlButtons(struct GadgetInfo *gi) int element = editor_element[element_shift + i]; UnmapGadget(gi); - getMiniGraphicSource(el2gfx(element), &gd->bitmap, &gd->x, &gd->y); + getMiniGraphicSource(el2img(element), &gd->bitmap, &gd->x, &gd->y); ModifyGadget(gi, GDI_INFO_TEXT, getElementInfoText(element), GDI_END); MapGadget(gi); }