> DFBCHECK(dfb->CreateSurface( dfb, &sdsc, &window_surface ) ); > DFBCHECK(layer->CreateWindow( layer, &desc, &window ) ); > DFBCHECK(window->GetSurface( window, &window_surface) ); // PROBLEM > DFBCHECK(dfb->CreateImageProvider( dfb,"dfblogo.png",&provider )); > provider->RenderTo( provider, window_surface, NULL ); > window_surface->Flip( window_surface, NULL, 0 ); > provider->Release( provider ); > > But the errormessage is the same. There is something, what i'm wondering > about. In df_window.c they used > window_surface1 and window_surface2, but they were never created.
The call GetSurface() creates the surface for you! Your CreateSurface() before GetSurface() has no sense. If i comment > DFBCHECK(dfb->CreateSurface( dfb, &sdsc, &window_surface ) ); i get the > message > DirectFBError [window->GetSurface( window, &window_surface)]: Interface was > released! It's a very strange thing. It's nonsense... Maybe you released the window instead by accident, didn't you? I forgot to ask - whether the df_window works correctly on your hardware ? And what is your DirectFB version ? -- Best Regards Nikita Egorov [email protected] [email protected] _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
