projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c07e4d5
)
added some cleanup and comments
author
Holger Schemel
<info@artsoft.org>
Thu, 4 Mar 2021 20:03:55 +0000
(21:03 +0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 4 Mar 2021 20:03:55 +0000
(21:03 +0100)
src/libgame/system.c
patch
|
blob
|
history
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index db9d72b1ef5bc4e377543fa05b2fe9e0a1c08b0c..12215ef9f0c130b0eaaf3ec357e8893e0173913f 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-1267,6
+1267,7
@@
void ReCreateGameTileSizeBitmap(Bitmap **bitmaps)
if (gfx.game_tile_size == gfx.standard_tile_size)
{
if (gfx.game_tile_size == gfx.standard_tile_size)
{
+ // set game bitmap pointer to standard sized bitmap (already existing)
bitmaps[IMG_BITMAP_PTR_GAME] = bitmaps[IMG_BITMAP_STANDARD];
return;
bitmaps[IMG_BITMAP_PTR_GAME] = bitmaps[IMG_BITMAP_STANDARD];
return;
@@
-1276,10
+1277,10
@@
void ReCreateGameTileSizeBitmap(Bitmap **bitmaps)
int width = bitmap->width * gfx.game_tile_size / gfx.standard_tile_size;;
int height = bitmap->height * gfx.game_tile_size / gfx.standard_tile_size;;
int width = bitmap->width * gfx.game_tile_size / gfx.standard_tile_size;;
int height = bitmap->height * gfx.game_tile_size / gfx.standard_tile_size;;
-
Bitmap *bitmap_new
= ZoomBitmap(bitmap, width, height);
+
bitmaps[IMG_BITMAP_CUSTOM]
= ZoomBitmap(bitmap, width, height);
- bitmaps[IMG_BITMAP_CUSTOM] = bitmap_new;
- bitmaps[IMG_BITMAP_PTR_GAME] = bitmap
_new
;
+ // set game bitmap pointer to custom sized bitmap (newly created)
+ bitmaps[IMG_BITMAP_PTR_GAME] = bitmap
s[IMG_BITMAP_CUSTOM]
;
}
static void CreateScaledBitmaps(Bitmap **bitmaps, int zoom_factor,
}
static void CreateScaledBitmaps(Bitmap **bitmaps, int zoom_factor,