Unfortunately, this gives me the dimensions of the surface, which is different
from the dimensions of the framebuffer.

My surface is 720x576, I420 on the backend scaler layer of the Matrox, while my
framebuffer device (as listed in fb.modes) is 952x519.

For now, I use the fbdev api...

Ciaos,

Kristof

Quoting "Claudio \KLaN\ Ciccani" <[EMAIL PROTECTED]>:

> Kristof Pelckmans wrote:
>
> >Hello,
> >
> >How can I obtain the current x, y resolution of the framebuffer device ? I
> have
> >a 4:3 surface that I want to display on a 16:9 screen using
> SetScreenLocation.
> >
> >Could it be possible to have a GetCurrentVideoMode on the IDirectFB ?
> >
> >Best regards,
> >
> >Kristof
> >
> >
> >
> >
> >
> int xres, yres;
> DFBDisplayLayerConfig config;
>
> layer->GetConfiguration(layer, &config); /* assuming layer is your
> IDirectFBDisplayLayer */
> xres = config.width; /* x resolution */
> yres = config.height; /* y resolution */
>
>
>
> Best regards,
> Claudio
>
>
>
> --
> Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with
> "unsubscribe directfb-dev" as subject.
>
>



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

Reply via email to