parent
5f74b58718
commit
d5587fde6f
|
@ -27,10 +27,10 @@ jpeg_la_LIBADD = -ljpeg
|
|||
bin_PROGRAMS = imlib2
|
||||
imlib2_SOURCES = rend.c ximage.c scale.c main.c rgba.c image.c \
|
||||
color.c grab.c blend.c file.c rgbadraw.c api.c draw.c \
|
||||
context.c updates.c colormod.c \
|
||||
context.c updates.c colormod.c font.c format.c \
|
||||
api.h image.h scale.h blend.h context.h updates.h \
|
||||
color.h draw.h rend.h ximage.h colormod.h file.h rgba.h \
|
||||
common.h grab.h rgbadraw.h
|
||||
common.h grab.h rgbadraw.h font.h format.h
|
||||
|
||||
imlib2_LDADD = @DLLDFLAGS@ $(top_builddir)/libltdl/libltdlc.la -lX11 -lXext
|
||||
|
||||
|
|
29
api.c
29
api.c
|
@ -802,6 +802,35 @@ imlib_render_image_updates_on_drawable(Imlib_Image image,
|
|||
__imlib_SetMaxXImageCount(display, 0);
|
||||
}
|
||||
|
||||
Imlib_Updates
|
||||
imlib_updates_init(void)
|
||||
{
|
||||
return (Imlib_Updates)NULL;
|
||||
}
|
||||
|
||||
Imlib_Updates
|
||||
imlib_updates_append_updates(Imlib_Updates updates,
|
||||
Imlib_Updates appended_updates)
|
||||
{
|
||||
ImlibUpdate *u, *uu;
|
||||
|
||||
u = (ImlibUpdate *)updates;
|
||||
uu = (ImlibUpdate *)appended_updates;
|
||||
if (!uu)
|
||||
return (Imlib_Updates)u;
|
||||
if (!u)
|
||||
return (Imlib_Updates)uu;
|
||||
while(u)
|
||||
{
|
||||
if (!u->next)
|
||||
{
|
||||
u->next = uu;
|
||||
return u;
|
||||
}
|
||||
u = u->next;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
imlib_image_flip_horizontal(Imlib_Image image)
|
||||
{
|
||||
|
|
2
api.h
2
api.h
|
@ -219,11 +219,9 @@ Imlib_Image imlib_create_cropped_scaled_image(Imlib_Image image,
|
|||
int source_height,
|
||||
int destination_width,
|
||||
int destination_height);
|
||||
#if 0 /* FIXME: must impliment */
|
||||
Imlib_Updates imlib_updates_init(void);
|
||||
Imlib_Updates imlib_updates_append_updates(Imlib_Updates updates,
|
||||
Imlib_Updates appended_updates);
|
||||
#endif
|
||||
Imlib_Updates imlib_update_append_rect(Imlib_Updates updates,
|
||||
int x, int y, int w, int h);
|
||||
Imlib_Updates imlib_updates_merge(Imlib_Updates updates, int w, int h);
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#include "common.h"
|
||||
#include <X11/Xlib.h>
|
||||
#include "image.h"
|
||||
#inlucde "font.h"
|
Loading…
Reference in New Issue