forked from old/legacy-imlib2
parent
3d43d11d22
commit
d70ec1693a
12
api.c
12
api.c
|
@ -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
2
api.h
|
@ -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,
|
||||
|
|
1
image.h
1
image.h
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue