-----Ursprüngliche Nachricht----- Von: Unger Richard Gesendet: Montag, 17. Juli 2006 16:14 An: 'Erick Galassi' Betreff: AW: [directfb-users] Blit prints direct on Screen
Hi! See the "SetConfiguration" method of the layer. Eg, it should be something like this: ... layer->GetConfiguration(layer,&config); config->backbuffer = DLBM_BACKVIDEO; // or DLBM_BACKSYSTEM layer->SetConfiguration(layer,&config); ... Do this before retrieving the surface, then the surface you get should be buffered, as I understand it. By configuring a back buffer in system or video memory you should obtain the desired FLIP behaviour! Richie > -----Ursprüngliche Nachricht----- > Von: Erick Galassi [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 17. Juli 2006 16:02 > An: Unger Richard > Cc: 'DirectFB-Users' > Betreff: RES: [directfb-users] Blit prints direct on Screen > > Hi, > > I´ retriving this surface using GetSurface from the DisplayLayer > object. > How can I reallocate a surface that I already have ? This part of the > code: > > IDirectFBSurface *primary; > IDirectFBDisplayLayer *layer; > > dfb->GetDisplayLayer(dfb,layer_id,&layer); > layer->SetCooperativeLeve(layer,DLSCL_EXCLUSIVE); > layer->GetSurface(layer,&primary); > > It is possible to re-allocate primary from here ? > > Regards, > Erick > > > -----Mensagem original----- > De: Unger Richard [mailto:[EMAIL PROTECTED] Enviada > em: segunda-feira, 17 de julho de 2006 10:35 > Para: Erick Galassi > Cc: DirectFB-Users > Assunto: AW: [directfb-users] Blit prints direct on Screen > > Hi! > > Have you tried allocating the surface using DSCAPS_DOUBLE to make it > double buffered? > > Cheers, > > Richie > > > -----Ursprüngliche Nachricht----- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von Erick > > Galassi > > Gesendet: Montag, 17. Juli 2006 15:19 > > An: [email protected] > > Betreff: [directfb-users] Blit prints direct on Screen > > > > Hi all. > > > > I have a device with 5 layers and I notice that some of > those layers > > have different capabilities and general settings. Ie: Layer 3 > > exclusive for Video , Layer 0 for Graphics, etc. > > > > My problem occurs when I try to Blit some content (an image for > > example) on the primary surface of a particular layer. > > Doing this way the image goes right to the screen without > needing to > > FLIP it later. I was wondering if it is possible to change this > > configuration in a way where I must FLIP everything before > it goes to > > the screen. > > > > Running dfbinfo I have the following information: > > > > Layer (00) FBDev Primary Layer > > Type: GRAPHICS > > Caps: SURFACE BRIGHTNESS CONTRAST SATURATION SCREEN_SIZE > > > > Layer (01) StbRend5L_Layer3 > > Type: GRAPHICS > > Caps: SURFACE OPACITY ALPHACHANNEL SCREEN_LOCATION > FLICKER_FILTERING > > DEINTERLACING BRIGHTNESS CONTRAST SATURATION LEVELS > SCREEN_POSITIONS > > SCREEN_SIZE LAYER_SHOWING. > > > > ... Other layers description > > > > Believe or not , the layer where I CAN NOT flip (blit > goes direct to > > the > > screen) is the Layer 01, where I have much more capabilities than > > Layer 0. > > That´s why I was hopping for some configuration that allow > me to FLIP > > even contents at Layer 1. > > > > Thank you very much, > > Erick Galassi > > > > > > > > > > _______________________________________________ > > directfb-users mailing list > > [email protected] > > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > > > > _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
