Hello all,

Due to the way that directfb gets the size of a primary_surface (using
exclusive mode on a vesafb fbdev), I cannot get my app to display correctly
on a dual head vga card (nvidia).

Essentially, there is a discrepancy between the way that
ioctl(...,FBIOGET_VSCREENINFO,...) says the resolution of the screen is and
the way that video.primary_surface->GetSize() reports it. *->GetSize() seems
to be following the size as reported by reading the file
/sys/class/graphics/fb0.

The resolution is set to 1280x1024 but dfb thinks is 1280x2048 (as if both
heads were active and the monitors were stacked on top of each other). When
we paint the image, the primary_surface display 1/2 of the actual image,
because the other half gets lost in the virtual screen.

What can I tell dfb so that it ignores the size reported by the sysfs and
uses the one that I define? I try using SetVideoMode but that didn't help
(vesafb driver).

If you want to examine the code, please see this:
http://git.debian.org/?p=splashy/splashy.git;a=blob;f=src/splashy_video.c;h=ce71df26efd27d3afbf0e8008cc84f6eee223979;hb=HEAD

Regards,

-- 
----)(-----
Luis Mondesi
Maestro Debiano

----- START ENCRYPTED BLOCK (Triple-ROT13) ------
Gur Hohagh [Yvahk] qvfgevohgvba oevatf gur fcvevg bs Hohagh gb gur fbsgjner
jbeyq.
----- END ENCRYPTED BLOCK (Triple-ROT13) ------
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to