It may be obvious, but the Surface Capabilities must include double or triple
buffering:
* DSCAPS_DOUBLE Surface is double buffered
* DSCAPS_TRIPLE Surface is triple bufferedChris
==================================
Chris Bore
Training Director
BORES Signal Processing
[email protected]
www.bores.com
+44 (0)1483 740138
________________________________
From: Pasha <[email protected]>
To: directfbusers <[email protected]>
Sent: Wed, 24 November, 2010 14:37:29
Subject: [directfb-users] Problem with Flip()
HI Friends,
I am facing problem with Flip() Interfaces,below is my code,here i have two
threads one is for to display text and one is to clear by FillRectangle or
Clear,i am able display text but not clear.
Please help.
calling thread A:
ret = primary->GetSubSurface(primary,&rect,&subsurface);
ret = subsurface->SetFont(subsurface,font);
ret = subsurface->DrawString(subsurface,text,-1,i,20,DSTF_RIGHT);
ret = primary->Flip (primary, NULL, DSFLIP_WAITFORSYNC);
calling thread B:
ret = primary->SetColor(primary,0x00,0x00,0x00,0xFF);
ret = primary->FillRectangle(primary,0,0,screen_width,screen_height);
ret = primary->Flip (primary, NULL,DSFLIP_ONSYNC);
Flip not filling the Screen with given color.
Looking forward for your help. _______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users