forked from enlightenment/efl
parent
35105b70d8
commit
31e88e86b7
|
@ -1,6 +1,6 @@
|
|||
#include "evas_test_main.h"
|
||||
|
||||
#include <directfb.h>
|
||||
#include <directfb/directfb.h>
|
||||
|
||||
#include "Evas.h"
|
||||
#include "Evas_Engine_DirectFB.h"
|
||||
|
@ -56,7 +56,7 @@ main(int argc, char *argv[])
|
|||
|
||||
DFBCHECK(dfb->GetInputDevice(dfb, DIDID_KEYBOARD, &keyboard));
|
||||
DFBCHECK(dfb->GetInputDevice(dfb, DIDID_MOUSE, &mouse));
|
||||
DFBCHECK(dfb->CreateEventBuffer(dfb, DICAPS_ALL, &buffer));
|
||||
DFBCHECK(dfb->CreateEventBuffer(dfb, &buffer));
|
||||
|
||||
evas = evas_new();
|
||||
evas_output_method_set(evas, evas_render_method_lookup("directfb"));
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <math.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <directfb.h>
|
||||
#include <directfb/directfb.h>
|
||||
#include "config.h"
|
||||
#include "Evas.h"
|
||||
#include "Evas_Engine_DirectFB.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define _EVAS_ENGINE_DIRECTFB_H
|
||||
#include <Evas.h>
|
||||
|
||||
#include <directfb.h>
|
||||
#include <directfb/directfb.h>
|
||||
|
||||
typedef struct _Evas_Engine_Info_DirectFB Evas_Engine_Info_DirectFB;
|
||||
|
||||
|
|
|
@ -167,6 +167,11 @@ evas_engine_directfb_output_setup(int w, int h, IDirectFB * dfb,
|
|||
|
||||
if (dfb->CreateSurface(dfb, &dsc, &buf) == DFB_OK)
|
||||
re->backbuf = buf;
|
||||
if (!buf)
|
||||
{
|
||||
printf("DFB engine: cannot create backbuf\n");
|
||||
exit(-1);
|
||||
}
|
||||
/* FIXME else exit with error. */
|
||||
|
||||
re->backbuf->SetDrawingFlags(re->backbuf, flags);
|
||||
|
|
Loading…
Reference in New Issue