matroxfb_base.c - a little fix
Quoted 3 lines · Denis Zaitsev
BTW, a little question: you use the (green.length == 5) test to distinct bpp15 from bpp16 (matroxfb_base.c:509). Why? Is the "real" 15 not used as the bits_per_pixel's value? Thanks in advance.
Yes, it is per spec. bits_per_pixel is bits per pixel, and for both 1:5:5:5 and 5:6:5 this is 16. Matrox hardware does not support 15bpp pixels (16 pixels in 15 bytes)...
Best regards,
Petr Vandrovec [email protected]