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.




Reply via email to