D
Daniele M.
Hi!
I hope someone could help me
I'm playing with cool FreeType library;
I have an 8bit pixmap (i suppose it should holds the values i have
combine with OR with my screen backbuffer in order to calculate
correctly the pixel color).
My problem is: my display backbuffer is 16bit (565), so when i apply
my pixmap with something like this:
pixel[x][y]=pixel[x][y] | pixmap[a,b]
it doesn't work very well (actually the pixel isn't changed as it
should )
I think the main problem is: pixel is a 16bit value, pixmap instead is
an 8bit value...
I think i should do a sort of conversion for pixmap...but i can't
figure how...
Please helppp!
Thanks in advance for your time.
Regards.
I hope someone could help me
I'm playing with cool FreeType library;
I have an 8bit pixmap (i suppose it should holds the values i have
combine with OR with my screen backbuffer in order to calculate
correctly the pixel color).
My problem is: my display backbuffer is 16bit (565), so when i apply
my pixmap with something like this:
pixel[x][y]=pixel[x][y] | pixmap[a,b]
it doesn't work very well (actually the pixel isn't changed as it
should )
I think the main problem is: pixel is a 16bit value, pixmap instead is
an 8bit value...
I think i should do a sort of conversion for pixmap...but i can't
figure how...
Please helppp!
Thanks in advance for your time.
Regards.