[AD] Small patch

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


I just reinstalled Linux on my PC box (Mandrake 8, that's really cool!), and 
got Allegro to work with it again. I noticed the X11 fullscreen driver 
doesn't center the mouse cursor at mode initialization as it should, so I've 
applied a very small patch (one line!) to fix this.

I was also investigating in applying the common windowed color conversion 
interface to the X11 and BeOS windowed gfx drivers, as for now both them use 
their own routines to do almost the same job; we particularly need this to 
speed up the X driver... There are some problems I tasted at a first look: 
first of all, the X driver seems much more complicated than I thought on the 
color conversion side, so maybe it's better if someone with a better 
knowledge on its inner workings could hack on it (Michael?)
Secondly, the BeOS driver allows to switch the desktop color depth while 
running your program, and this is actually supported by the current 
implementation. Too bad the new common API doesn't support 
truecolor->paletted conversions, and just fails on initializing the 
conversion function if that is the case. But a BeOS user could have an 
Allegro program running in truecolor over a truecolor desktop; what if he/she 
attempts to change the desktop depth to 8bit while the program is running? 
No, IMHO we must add truecolor->8bit conversion support to the common API.
What do you think?

-- 
Angelo Mottola
a.mottola@xxxxxxxxxx
http://www.ecplusplus.com



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