I've modificated the sources like this:
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <++dfb.h>
int main()
{
IDirectFB dfb;
IDirectFBImageProvider provider;
IDirectFBSurface surface;
DFBSurfaceDescription desc;
DirectFB::Init();
dfb = DirectFB::Create();
provider =
dfb.CreateImageProvider("/etc/usplash/background.jpg");
provider.GetSurfaceDescription( &desc );
desc.flags = DSDESC_CAPS;
desc.caps = DSCAPS_PRIMARY;
surface = dfb.CreateSurface( desc );
provider.RenderTo( surface, NULL );
}
compiled as: $ g++ -l++dfb -I /usr/include/++dfb
-I /usr/include/directfb prova.cc
and run as: $ sudo ./a.out
---------------------- DirectFB v0.9.22 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2005-03-08 15:29)
(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 10990)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 11007)...
(!!!) *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:802]
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 11008)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (convergence
integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 11009)...
(*) DirectFB/Input: ImPS/2 Generic Wheel Mouse (2) 0.1 (convergence
integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 11010)...
(*) DirectFB/Input: PC Speaker (3) 0.1 (convergence integrated media
GmbH)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 11011)...
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (convergence
integrated media GmbH)
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
(*) Direct/Interface: Loaded 'JPEG' implementation of
'IDirectFBImageProvider'.
(!) DirectFB/FBDev: Panning display failed!
--> Invalid argument
(!!!) *** WARNING [still objects in 'Window Pool'] *** [object.c:200
in fusion_object_pool_destroy()]
[EMAIL PROTECTED]:~ $
note that for a little time (1 second at least) i got a blue screen with
a cursor inside (i don't know if it was a cursor, but it seemed to be a
big pointer of mouse).
I got this eror, i'm using vesafb driver with vga=792.
Does anybody know how to solve this?
nb: i know that i'm pestering all the list, but i tried a lot of library
to do this stuff and nothing accomplished that, if i get a 100% working
image parser (using ++dfb) i'll learn more about ++dfb library...
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users