From: Christian B. <cb...@st...> - 2001-03-23 15:07:15
|
Hi! On Fri, Mar 23, 2001 at 09:49:08AM +0100, Gwenole Beauchesne wrote: > In xmame, they used an interesting trick: setting hooks for DGA1 and DGA2 > functions. Using XFree 4.0.2 with a Matrox G450 the current DGA1 code in B2 works perfectly in 8-bit mode, shows some false colors and "swapped" pixels in 16-bit mode (my guess is that reading from the frame buffer doesn't endianess-correct the pixel data; moving the mouse pointer disturbs the areas underneath), and is messed up in 32-bit mode (looks like it's using an incorrect bytes-per-row; or maybe I messed up and used a 24 bpp packed mode instead of a 32 bpp one; I'll have to recheck). Using XFree 4.0.1a with an NVidia TNT2 and NVidia's drivers results in a complete system lockup when trying the "dga" DGA2 demo program that comes with XFree. I have yet to test B2/DGA1 on that setup. > [dlopen()] > I don't know about Windows nor Irix nor HP/UX. Do you know a > GPL-compatible library that wraps those functions on as many systems as > possible ? Appearently, libltdl (part of libtool) is such a thing. The docs say it works on Solaris/Linux/BSD (using dlopen), HP-UX (using shl_load), Windows (using LoadLibrary), and BeOS (using load_add_on). AmigaOS is missing but that's using native 68k emulation anyway. Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/ |