X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftape.c;h=f75bc897e6f4579f1908050253b3ce1c0c2c3f01;hp=fa73f3f99c64b43c55421faba707a68cdc5caa82;hb=a21695563e089926d8e859e1ee0f3b077c8a7ed0;hpb=189786117925be600e72068054a16ae419bfe30f diff --git a/src/tape.c b/src/tape.c index fa73f3f9..f75bc897 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1311,7 +1311,8 @@ void CreateTapeButtons() for (i = 0; i < NUM_TAPE_BUTTONS; i++) { - struct GraphicInfo *gfx = &graphic_info[tapebutton_info[i].graphic]; + int graphic = tapebutton_info[i].graphic; + struct GraphicInfo *gfx = &graphic_info[graphic]; struct XY *pos = tapebutton_info[i].pos; struct GadgetInfo *gi; int gd_x = gfx->src_x; @@ -1321,6 +1322,7 @@ void CreateTapeButtons() int id = i; gi = CreateGadget(GDI_CUSTOM_ID, id, + GDI_IMAGE_ID, graphic, GDI_INFO_TEXT, tapebutton_info[i].infotext, GDI_X, VX + pos->x, GDI_Y, VY + pos->y,