PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

8bpp screen depth

Does anyone knows, is it possible to use PF with 8bpp or 4bpp/grayscale displays ? Does it have any built-in support or should I wrote some additional layers for this?
From the looks of display.cpp in the PF source, it should work.

Depending on the color depth, the DisplayDevice will be initiated with the appropriate blitter. And then that function will be used seamlessly through out your code. You shouldn't have to do anything special.

I'm not shure, but you might want to call SetDithering() on your grayscale device though.

Someone should double check this.
Well, if it can't initialize GAPI, won't it fall back to GDI anyway?
Well, if it can't initialize GAPI, won't it fall back to GDI anyway?

Yes, this is also true. I'm using PocketFrog as a GDI wrapper since GAPI is not available on my device.