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));
- 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;
}
void InitVideoDisplay(void);
void CloseVideoDisplay(void);
void InitVideoBuffer(int, int, int, boolean);
+void ResetBitmapAlpha(Bitmap *);
Bitmap *CreateBitmapStruct(void);
Bitmap *CreateBitmap(int, int, int);
void ReCreateBitmap(Bitmap **, int, int);