Quoting Noberasco Michele ([EMAIL PROTECTED]):
> 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 primary surface is an "API shortcut". You are already using the non-short
version by getting the layer yourself. Also creating a primary surface is
mainly useful for apps running normally fullscreen.

I suggest to create a window on the layer instead of creating a primary
surface. You can call GetSurface() on that window and the rest of your
code doesn't need to change.

> 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?

640x480 is the default primary surface size in windowed mode.

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

You could use gpm to translate that to ms protocol,
but I don't have details about getting the serial driver to
work with the gpm repeater.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


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

Reply via email to