more flim code..... >8)

SVN revision: 972
This commit is contained in:
Carsten Haitzler 1999-10-25 23:30:45 +00:00
parent 3d43d11d22
commit d70ec1693a
3 changed files with 15 additions and 0 deletions

12
api.c
View File

@ -405,6 +405,18 @@ imlib_render_pixmaps_for_whole_image_at_size(Imlib_Image image, Display *display
color_modifier);
}
void
imlib_free_pixmap_and_mask(Display *display, Pixmap pixmap)
{
ImlibImagePixmap *ip;
ip = __imlib_FindCachedImagePixmapByID(display, pixmap);
if (ip)
ip->references--;
__imlib_CleanupImagePixmapCache();
}
void
imlib_render_image_on_drawable(Imlib_Image image, Display *display,
Drawable drawable, Visual *visual,

2
api.h
View File

@ -167,6 +167,8 @@ void imlib_render_image_part_on_drawable_at_size(Imlib_Image image, Display *dis
int x, int y, int width, int height,
Imlib_Color_Modifier color_modifier,
Imlib_Operation operation);
void imlib_free_pixmap_and_mask(Display *display, Pixmap pixmap);
/* rgba space ops */
void imlib_blend_image_onto_image(Imlib_Image source_image,
Imlib_Image destination_image,

View File

@ -115,6 +115,7 @@ ImlibImagePixmap *__imlib_FindCachedImagePixmap(ImlibImage *im, int w, int h,
int sw, int sh, Colormap cm,
char aa, char hiq, char dmask,
DATABIG modification_count);
ImlibImagePixmap *__imlib_FindCachedImagePixmapByID(Display *d, Pixmap p);
void __imlib_AddImagePixmapToCache(ImlibImagePixmap *ip);
void __imlib_RemoveImagePixmapFromCache(ImlibImagePixmap *ip);
void __imlib_CleanupImagePixmapCache(void);