Intial commit
[profile/ivi/w3m.git] / w3mimg / fb / fb_img.c
1 /* $Id: fb_img.c,v 1.6 2003/07/07 15:48:17 ukai Exp $ */
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <sys/types.h>
5 #include <sys/wait.h>
6 #include "config.h"
7 #include "fb.h"
8 #include "fb_img.h"
9
10 static int bg_r = 0, bg_g = 0, bg_b = 0;
11
12 #if defined(USE_IMLIB2)
13 #include "w3mimg/fb/fb_imlib2.c"
14 #elif defined(USE_GDKPIXBUF)
15 #include "w3mimg/fb/fb_gdkpixbuf.c"
16 #else
17 #error no Imlib2 and GdkPixbuf support
18 #endif
19
20 void
21 fb_image_set_bg(int r, int g, int b)
22 {
23     bg_r = r;
24     bg_g = g;
25     bg_b = b;
26 }
27
28 int
29 fb_image_clear(int x, int y, int w, int h)
30 {
31     return fb_clear(x, y, w, h, bg_r, bg_g, bg_b);
32 }