Eric Maland wrote:
I'm trying to get a reasonable test/dev environment for DirectFB going on
my macbook under parallels (http://www.parallels.com).
I have installed Ubuntu Dapper and built the DFBTutorials etc without
problem;
I have modified my kernel boot parameters to include vga=0x317, which
gives me a 1024x768 16bit frame buffer.
However, when I run the tutorials and examples, I get nothing but a blank
screen, and the following warnings/errors in output:
(!) DirectFB/FBDev: Unsupported pixelformat: rgba 5/11, 6/5, 5/0, 0/16 (16bit)
It's strange to signal 0 bits at 16 :)
(!!!) *** WARNING [unknown format] *** [fbdev.c:1763 in dfb_fbdev_set_mode()]
(!!!) *** ONCE [unsupported destination format] *** [generic.c:7036 in
gAcquire()]
(!) [ 9708: 0.000] --> Caught signal 11 (at 0xe4, invalid address) <--
What am I doing wrong here? I know it wants to work, it's got the heart
of a champion, am I missing something?
Maybe the patch helps.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
Index: systems/fbdev/fbdev.c
===================================================================
RCS file: /cvs/directfb/DirectFB/systems/fbdev/fbdev.c,v
retrieving revision 1.41
diff -p -u -r1.41 fbdev.c
--- systems/fbdev/fbdev.c 21 Jun 2006 09:20:59 -0000 1.41
+++ systems/fbdev/fbdev.c 28 Jul 2006 17:12:31 -0000
@@ -1448,10 +1448,10 @@ static int dfb_fbdev_compatible_format(
vgh = var->green.length + var->green.offset - 1;
vbh = var->blue.length + var->blue.offset - 1;
- if (ah == vah && al >= (int)var->transp.length &&
- rh == vrh && rl >= (int)var->red.length &&
- gh == vgh && gl >= (int)var->green.length &&
- bh == vbh && bl >= (int)var->blue.length)
+ if ((!al || (ah == vah && al >= (int)var->transp.length)) &&
+ (!rl || (rh == vrh && rl >= (int)var->red.length)) &&
+ (!gl || (gh == vgh && gl >= (int)var->green.length)) &&
+ (!bl || (bh == vbh && bl >= (int)var->blue.length)))
return 1;
return 0;
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users