]> hackdaworld.org Git - my-code/api.git/blob - dfb/dfb.c
fixed rgb values of pixmap struct
[my-code/api.git] / dfb / dfb.c
1 /* dfbt.c -- direct framebuffer stuff
2  *
3  * author: hackbard@hackdaworld.org
4  *
5  */
6
7 #include "dfb.h"
8
9 int dfb_init(t_dfb *dfb,int outfd,int &arg_c,char *arg_v) {
10
11   dprintf(outfd,"[dfb] initializing dfb system ...\n");
12
13   dfb->outfd=outfd;
14
15   DFBInit(arg_c,arg_v);
16
17   DirectFBCreate(&(dfb->iface));
18   
19   return DFB_SUCCESS;
20 }