X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools.c;h=a04238724c35f92b03cd788de7ec1efdb411a070;hb=dbe473b63ac67dabfb47c82e104f2b8f33ca2d51;hp=e2ce4712db41208c121239ecaf39204270c6d0c2;hpb=2755bae650b89e72250cb11161ac210d18d39474;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index e2ce4712..a0423872 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1253,12 +1253,14 @@ void DrawGraphicThruMaskExt(DrawBuffer *d, int dst_x, int dst_y, int graphic, void DrawFixedGraphicThruMaskExt(DrawBuffer *d, int dst_x, int dst_y, int graphic, int frame) { + struct GraphicInfo *g = &graphic_info[graphic]; Bitmap *src_bitmap; int src_x, src_y; getFixedGraphicSource(graphic, frame, &src_bitmap, &src_x, &src_y); - BlitBitmapMasked(src_bitmap, d, src_x, src_y, TILEX, TILEY, dst_x, dst_y); + BlitBitmapMasked(src_bitmap, d, src_x, src_y, g->width, g->height, + dst_x, dst_y); } void DrawSizedGraphic(int x, int y, int graphic, int frame, int tilesize)