void LoadImageWithImlib(char *reg_im, ImColor *reg_trans, Pixmap *pmap, Pixmap *mask, int *width, int *height)
{
/* This function basically sums up everything you need to load an image using
* imlib -- made by Mandrake some time around 06/21/97 or so ... */
Image *im;
char s[10240];
im=LoadImage(imd,reg_im,reg_trans);
if (!im)
{
Alert("EEEEK! Someone Save me!\n I wasn't able to load the file:\n%s\n I'm having a nervous breakdown over this... AAARGH\n(Enlightenment is seen fleeing from the screen\n in an uncrontrollable fit).\n",reg_im);
exit(1);
}
ImlibRender(imd,im,im->rgb_width,im->rgb_height);
*pmap=ImlibMoveImageToPixmap(imd,im);
*mask=ImlibMoveMaskToPixmap(imd,im);
*width=im->rgb_width;
*height=im->rgb_height;
ImlibDestroyImage(imd,im);
}
void LoadImageSizeWithImlib(char *reg_im, ImColor *reg_trans, Pixmap *pmap, Pixmap *mask, int width, int height)
{
/* This function basically sums up everything you need to load an image using
* imlib -- made by Mandrake some time around 06/21/97 or so ... */
Image *im;
char s[10240];
im=LoadImage(imd,reg_im,reg_trans);
if (!im)
{
Alert("EEEEK! Someone Save me!\n I wasn't able to load the file:\n%s\n I'm having a nervous breakdown over this... AAARGH\n(Enlightenment is seen fleeing from the screen\n in an uncrontrollable fit).\n",reg_im);
exit(1);
}
ImlibRender(imd,im,width,height);
*pmap=ImlibMoveImageToPixmap(imd,im);
*mask=ImlibMoveMaskToPixmap(imd,im);
ImlibDestroyImage(imd,im);
}
void InitIcons()
{
Pixmap dummy;
/* 06/22/97 - finally abstracted out the button loading to use (mandrake)
* LoadImageWithImlib - cut down on like 100 or so lines of code