projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved drawing cave tile for BD engine to separate function
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 2fad22274b84e09fc5bdac61421b860f511265ab..c1abb8a41ab1d11d7d43f34f5c128dea14694e99 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-599,15
+599,20
@@
void FreeBitmap(Bitmap *bitmap)
free(bitmap);
}
free(bitmap);
}
+void ResetBitmapAlpha(Bitmap *bitmap)
+{
+ bitmap->alpha[0][0] = -1;
+ bitmap->alpha[0][1] = -1;
+ bitmap->alpha[1][0] = -1;
+ bitmap->alpha[1][1] = -1;
+ bitmap->alpha_next_blit = -1;
+}
+
Bitmap *CreateBitmapStruct(void)
{
Bitmap *new_bitmap = checked_calloc(sizeof(Bitmap));
Bitmap *CreateBitmapStruct(void)
{
Bitmap *new_bitmap = checked_calloc(sizeof(Bitmap));
- new_bitmap->alpha[0][0] = -1;
- new_bitmap->alpha[0][1] = -1;
- new_bitmap->alpha[1][0] = -1;
- new_bitmap->alpha[1][1] = -1;
- new_bitmap->alpha_next_blit = -1;
+ ResetBitmapAlpha(new_bitmap);
return new_bitmap;
}
return new_bitmap;
}