projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efcd338
)
fixed bug with losing image filename when scaling bitmaps
author
Holger Schemel
<info@artsoft.org>
Thu, 13 Sep 2018 21:13:51 +0000
(23:13 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 13 Sep 2018 21:13:51 +0000
(23:13 +0200)
src/libgame/system.c
patch
|
blob
|
history
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 7321731c75110895a24c6c0380a5036cdf338ee2..d5504854bc13d90f30ee9c1a3f9f8adf3387ac2f 100644
(file)
--- 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
{