PageRenderTime 81ms CodeModel.GetById 56ms app.highlight 2ms RepoModel.GetById 19ms app.codeStats 4ms

/src/backend/directfb/ftk_backend_dfb.c

http://ftk.googlecode.com/
C | 22 lines | 16 code | 6 blank | 0 comment | 0 complexity | cf3938d8b7911bce4bb21b5a8eb9cb8a MD5 | raw file
 1#include "ftk_globals.h"
 2#include "ftk_display_dfb.h"
 3#include "ftk_source_dfb.h"
 4
 5#define DFBCHECK(x) x
 6	
 7static IDirectFB* s_dfb = NULL;
 8
 9IDirectFB* directfb_get(void)
10{
11	return s_dfb;
12}
13
14Ret ftk_backend_init(int argc, char* argv[])
15{
16	DFBCHECK(DirectFBInit( &argc, &argv ));
17	DFBCHECK(DirectFBCreate( &s_dfb ));
18
19	ftk_set_display(ftk_display_dfb_create(s_dfb));
20
21	return RET_OK;
22}