depth = 8;
#endif
- image = checked_malloc(sizeof(Image));
- image->data = checked_malloc(width * height * bytes_per_pixel);
+ image = checked_calloc(sizeof(Image));
+ image->data = checked_calloc(width * height * bytes_per_pixel);
image->width = width;
image->height = height;
image->depth = depth;
return image_info->file_list;
}
+Bitmap *getBitmapFromImageID(int graphic)
+{
+ ImageInfo **img_info = (ImageInfo **)image_info->artwork_list;
+
+ return img_info[graphic]->bitmap;
+}
+
void InitImageList(struct ConfigInfo *config_list,
struct ConfigInfo *config_suffix_list,
int num_file_list_entries)