Hi list,

I'm developing a getty kind of app:
http://qingy.sourceforge.net/

While it runs flawlessly on my x86 machines, I have problems getting it
to work on a Sun UltraSparc 5 machine running Gentoo Linux and DirectFB
0.9.18.
Video card is an ATI Rage 128 (which got better support starting from
0.9.18), with ATI framebuffer enabled (and working) in kernel 2.4.20
vanilla. Here is my problem:

I init DirectFB with this code:
DFBCHECK (DirectFBInit (&argc, &argv));
DFBCHECK (DirectFBCreate (&dfb));
dfb->EnumInputDevices (dfb, enum_input_device, &devices);
DFBCHECK (dfb->CreateInputEventBuffer (dfb, DICAPS_ALL, DFB_TRUE,
&events));
DFBCHECK (dfb->GetDisplayLayer (dfb, DLID_PRIMARY, &layer));
layer->SetCooperativeLevel (layer, DLSCL_ADMINISTRATIVE);       sdsc.flags = 
DSDESC_CAPS;
sdsc.caps  = DSCAPS_PRIMARY | DSCAPS_FLIPPING;
DFBCHECK(dfb->CreateSurface( dfb, &sdsc, &primary ));
primary->GetSize (primary, &screen_width, &screen_height);

The call to primary->GetSize return wrong screen size (640x480 while
screen resolution is 1152x900), so all graphics in my app is the wrong
size/position. Any ideas?

Also, my mouse doesn't get recognized by DirectFB. It is a standard Sun
mouse, with protocol "sun".

I'll provide any additional information that may be necessary.

Thank you in advance,
Michele Noberasco

-- 
Linux *IS* user friendly: it just appears
to be selective who it is friend with!



-- 
Linux *IS* user friendly: it just appears
to be selective who it is friend with!


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to