If I change: layer_control.c -> dfb_layer_remove_context And remove the if(shared->suspended || dfb_layer_context_activate() = DFB_OK)
and replace with if(shared->suspended) It behaves as I would like. However I have no idea of the side effects. Any clues? It still seems fairly odd that at shutdown I re activate the layer context. I am running DirectFB 1.2.6 Cheers Daniel Laird -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel J Laird Sent: 2008 Oct 13 12:57 To: directfb-dev@directfb.org Subject: Re: [directfb-dev] Layer Clearing at shutdown in DFB 1.2.x I am still having considerable trouble with the layers being cleared at shutdown. >From the debug you can see the issue: (-) [Main Thread 59.932] ( 516) IDirectFB: IDirectFB_Release( 0x7bf7e0 ) (-) [Main Thread 59.932] ( 516) IDirectFB: IDirectFB_Destruct( 0x7bf7e0 ) (-) [Main Thread 59.932] ( 516) Core/Layers: destroying context 0x7c1b70 (FBDev Primary Layer [OSD], active) (-) [Main Thread 59.932] ( 516) Core/Layers: dfb_layer_remove_context (FBDev Primary Layer [OSD], 0x7c1b70) (-) [Main Thread 59.933] ( 516) Core/Layers: dfb_layer_context_deactivate (0x7c1b70) (-) [Main Thread 59.933] ( 516) Core/Layers: dfb_layer_context_activate (0x7c0118) ..... this 'activate context' call seems to re allocate buffers and in the end cause the buffer to be cleared and flipped. The call to dfb_layer_context_activate seems to come from layer_control.c -> dfb_layer_remove_context. There is a check on line 497 that says shared->suspended || dfb_layer_context_activate() = DFB_OK This call is causing the window stack etc to be repainted and cause my issue. Can anyone advise on this issue. I need to have it such that when I exit DirectFB the Framebuffer continues to display what was onscreen when I exited. Many thanks Daniel Laird _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev