rockchip-linux / u-boot

U-Boot tree for pending commits
115 stars 79 forks source link

Fix 24bpp logo bmp display problem #6

Closed ghost closed 7 years ago

ghost commented 7 years ago

If set the alpha channel value to 0 for 24bpp bmp logo file, the logo will not display on the screen. Just set it to 255 which is the max value of alpha channel of RGBA color space, and the bmp logo will display correctly.

ghost commented 7 years ago

The rk-3368 platform has the problem the logo's colors are not correct which seems like the colors changed, when the logo.bmp is 24bpp. So I modify the code of branch rk-3368 based on this branch's way to dispose 24bpp logo bmp file. But the logo can not be displayed on the screen. After I change the alpha channel default value of RGBA color space to 255 , everything works fine. I have checked the RGBA color space's wiki what said if we set the alpha channel value to 0% of max value, the foreground image will have a total transparent effect, and the background will display to user totally; on the other hand, if set alpha channel value to 100% of max value , it has inverse effect. Because the code just use 32bpp LCD to display 24bpp bmp file, so just add its alpha channel default value to 100% of max value which is 255.

wzyy2 commented 7 years ago

Hi,

Could you send your patches to upstream uboot? We don't maintain it in here and i will close it.

ghost commented 7 years ago

branch rkproduct?