XFreeGC(display, bitmap->stored_clip_gc);
#endif
+ if (bitmap->source_filename)
+ free(bitmap->source_filename);
+
free(bitmap);
}
return new_bitmap;
}
+Bitmap *LoadCustomImage(char *basename)
+{
+ char *filename = getStringCopy(getCustomImageFilename(basename));
+ Bitmap *new_bitmap;
+
+ if ((new_bitmap = LoadImage(filename)) == NULL)
+ Error(ERR_EXIT, "LoadImage() failed: %s", GetError());
+
+ new_bitmap->source_filename = filename;
+
+ return new_bitmap;
+}
+
/* ========================================================================= */
/* audio functions */