From: Holger Schemel Date: Thu, 13 Sep 2018 21:13:51 +0000 (+0200) Subject: fixed bug with losing image filename when scaling bitmaps X-Git-Tag: 4.1.1.0~36 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=bd01321d14510fd3718ec7ffb31edab10dbc8b11;p=rocksndiamonds.git fixed bug with losing image filename when scaling bitmaps --- diff --git a/src/libgame/system.c b/src/libgame/system.c index 7321731c..d5504854 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -1388,7 +1388,13 @@ static void CreateScaledBitmaps(Bitmap **bitmaps, int zoom_factor, free_old_bitmap = FALSE; if (free_old_bitmap) + { + /* copy image filename from old to new standard sized bitmap */ + bitmaps[IMG_BITMAP_STANDARD]->source_filename = + getStringCopy(old_bitmap->source_filename); + FreeBitmap(old_bitmap); + } } else {