From: Holger Schemel Date: Sat, 2 Jan 2016 19:26:10 +0000 (+0100) Subject: fixed drawing 'fixed' (standard sized) (element) graphics X-Git-Tag: 4.0.0.0-rc1~104 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=93e2747358fef77db481b9f36e4d088e6441899e fixed drawing 'fixed' (standard sized) (element) graphics --- diff --git a/src/tools.c b/src/tools.c index 7a15c03e..78f76fd8 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1239,13 +1239,12 @@ 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, g->width, g->height, + BlitBitmapMasked(src_bitmap, d, src_x, src_y, TILEX, TILEY, dst_x, dst_y); }