[AD] DGA 2.0 driver implementation

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Ok, I've installed XF 4.0.1, and I've already begun coding.
The new driver will be added to the xwin.c file, as it's a direct extension of
the code that is there. It will be compiled and added to the X drivers list
only if ALLEGRO_XWINDOWS_WITH_XF86DGA2 is defined, and this will make it easy
to configure at library building process.
Now, DGA 2.0 works only with linear framebuffers, and that's good, but in the
new API there are no functions to get the current video mode settings; there's
no XF86DGAGetVideo... By the way, there are functions to get the modelines from
XF86Config, and set new modes. But this means a "not fullscreen" DGA mode isn't
possible now; the new API allows to get all the modeline settings available,
and choose one of them to set the new mode. I could make an unique DGA 2.0
driver that searches for the desired resolution and color depth among all
available video modes, and sets the mode to the one which best fits for the
selection, but I'm open to suggestions!

-- 
Angelo Mottola
a.mottola@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/