[links] prolems with links2 and directfb
Mirko Vogt <[email protected]> Mon, 19 Oct 2009 18:23:06 +0200
| Newsgroups | gmane.comp.web.links.list |
|---|---|
| Message-ID | <1255969386.5616.35.camel@mia> |
Hey,
I'm trying to get links2 running on top of DirectFB.
DirectFB in general is working (gtk2-applications work), however running
links returns the following error:
# links -g -driver directfb
[..]
Could not initialize graphics driver directfb:
Unsupported color depth.
I added some printf's around the code-snippet which is printing this
error-message:
===
pixelformat = config.pixelformat;
directfb_driver.depth = (((DFB_BYTES_PER_PIXEL (pixelformat) & 0x7)) |
((DFB_BITS_PER_PIXEL (pixelformat) & 0x1F)
<< 3));
printf("pixmap: %x\n", pixelformat);
/* endian test */
if (htons (0x1234) == 0x1234) {
printf("endian test: true\n");
} else {
directfb_driver.depth |= 0x100;
printf("endian test: false\n");
}
printf("color depth: %i\n", directfb_driver.depth);
switch (directfb_driver.depth) {
case 33:
case 65:
case 122:
case 130:
case 378:
case 386:
case 451:
case 195:
case 452:
case 196:
case 708:
break;
default:
layer->Release(layer);
dfb->Release(dfb);
return stracpy("Unsupported color depth.\n");
}
===
The output is now the following:
# links -g -driver directfb
[..]
pixmap: 400c03
endian test: false
color depth: 260
Could not initialize graphics driver directfb:
Unsupported color depth.
versions:
links: 2.1pre37
libdirectfb: 1.4.2
color-depth has a value not within the switch-statement - but why not?
What's "color depth" exactly? Is it fixed?
And the general question - how to get working? :)
Thanks a lot in advance!
mirko
--
This email address is used for mailinglist purposes only.
Non-mailinglist emails will be dropped automatically.
If you want to get in contact with me personally, please mail to:
mirko.vogt <at> nanl <dot> de
_______________________________________________
links-list mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/links-list