On Monday 13 January 2003 18:50, Martin Albert wrote:
> When doing as suggested, however (compiling modded directfb) lots of
> errors are now generated by directfb about unexpected pixelformats.
> As i could only test with broken nvidia driver, i don't know yet,
> whether this is the gfxdriver or really the interface.
Diffing libggi-2.0.2/default/fbdev/directfb/ggidirectfb.h and
directfb-0.9.15/src/core/gfxcard.c wrt. typedef struct
GraphicsDeviceShared and struct _GraphicsDevice
gives terrifying first hints. Simple transplant leads to:
visual.c: In function `GGIopen':
visual.c:243: structure has no member named `driver'
visual.c:260: structure has no member named `fix'
visual.c:263: structure has no member named `framebuffer'
visual.c:264: structure has no member named `framebuffer'
...
make[6]: Leaving directory `/tmp/libggi-2.0.2/default/fbdev/directfb'
boils down to
dfb_driver = dfb_device->driver = &(priv->driver);
and
memcpy(&(priv->deviceshared.fix), &(fbdevpriv->fix),
sizeof(struct fb_fix_screeninfo));
and
dfb_device->framebuffer.base = fbdevpriv->fb_ptr;
dfb_device->framebuffer.length = fbdevpriv->fb_size; /* mmap_size ?? */
Ah - help, please. Having terrible pain in the back for some days, i''m
afraid i can't afford to spend the night on that.
martin