Never mind, Did some more research and found it on the wiki:
Fill LiteBox with a Specific Color: static DFBResult FillBox(LiteBox *box, DFBColor *color) { DFBResult res = DFB_OK; IDirectFBSurface *s = box->surface; res = s->SetColor(s, color->r, color->g, color->b, color->a); res = s->FillRectangle(s, box->rect.x, box->rect.y, box->rect.w, box->rect.h); res = s->Flip(s, NULL, 0); return res; } Note that this will immediately call Flip and thus force the update. In case you want to collect all changes, do not call Flip at this instance. It's generally better to put code like this into your Draw callback for a LiTEBox and wait until it's called by a window update. One thing I'm not sure how to do is to set a Draw callback for a LiteBox, I will have to do some further reading on that. Regards, Bryan > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:directfb-users- > [EMAIL PROTECTED] On Behalf Of Bryan Bui-Tuong > Sent: Wednesday, June 04, 2008 12:28 PM > To: directfb-users@directfb.org > Subject: [directfb-users] LiTE: Drawing functions or drawing on top of > a window > > I am trying to draw different shapes but am not sure how to do this. I > can > only think of using DFB drawing functions and drawing to a surface then > blitting this surface. However, I'm not sure how this works when using > LiTE. Can anyone suggest the best method to do this? (Still learning > DFB & > LiTE). > > V/R, > Bryan > > > > > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users