Hi,
I am trying to implement Duff rules using DirectFB and encountered a
hang on doing the following procedure.
static IDirectFBSurface *primary = NULL;
DFBSurfaceDescription dsc;
IDirectFBImageProvider *provider;
static IDirectFBSurface *logo = NULL;
DFBCHECK (dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));
dsc.flags = DSDESC_CAPS;
dsc.caps = DSCAPS_PRIMARY;
DFBCHECK (dfb->CreateSurface( dfb, &dsc, &primary ));
primary->SetDrawingFlags(primary, DSDRAW_BLEND);
primary->SetPorterDuff(primary,DSPD_CLEAR);
primary->SetColor(primary, 0x80, 0x0, 0x0, 0x80);
primary->SetBlittingFlags(primary,DSBLIT_BLEND_ALPHACHANNEL);
DFBCHECK (dfb->CreateImageProvider (dfb, "/root/images.jpeg", &provider));
DFBCHECK (dfb->CreateSurface( dfb, &dsc, &logo));
DFBCHECK (provider->RenderTo (provider, logo, NULL));
provider->Release (provider);
DFBCHECK (primary->FillRectangle (primary, 0, 0, screen_width,
screen_height));
primary->SetPorterDuff(primary,DSPD_CLEAR);
//logo->SetPorterDuff(logo, DSPD_SRC); //just trying out
a few combinations
DFBCHECK (primary->Blit (primary, logo, NULL, 50,( (screen_height -
dsc.height)/2)));
DFBCHECK (primary->Flip (primary, NULL, DSFLIP_BLIT));
This is the part of the code due to which the hang is occurring.It
doesnt hang if the setblittingflags line is removed.
Please help me out.It may only be because im trying out something that
shouldnt be done.
Thanks in advance!!!!
Regards,
Ajaz H
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev