work with latest dfb in cvs

SVN revision: 6460
This commit is contained in:
Carsten Haitzler 2002-11-25 02:11:39 +00:00
parent 35105b70d8
commit 31e88e86b7
4 changed files with 9 additions and 4 deletions

View File

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

View File

@ -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"

View File

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

View File

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