add some files...

SVN revision: 405
This commit is contained in:
Carsten Haitzler 1999-09-27 04:33:58 +00:00
parent 5f74b58718
commit d5587fde6f
7 changed files with 42 additions and 4 deletions

View File

@ -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
View File

@ -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
View File

@ -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);

4
font.c Normal file
View File

@ -0,0 +1,4 @@
#include "common.h"
#include <X11/Xlib.h>
#include "image.h"
#inlucde "font.h"

3
font.h Normal file
View File

@ -0,0 +1,3 @@
#ifndef __FONT
#define __FONT 1
#endif

1
format.c Normal file
View File

@ -0,0 +1 @@
#include "format.h"

3
format.h Normal file
View File

@ -0,0 +1,3 @@
#ifndef __FORMAT
#define __FORMAT 1
#endif