Monday, March 19th 2018, 3:36pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Nov 21st 2017

Posts: 7


Tuesday, November 21st 2017, 3:20pm

Bug in GUI_PNG.c

Dear Segger Team.

I've update from emwin 5.32 to 5.40 and found that PNG images that do not have an alpha channel are not shown anymore.
I use emwin in ARGB mode and had to change GUI_PNG.c at line 400 like:

C/C++ Source code

        	//Color = b + ((U16)g << 8) + ((U32)r << 16); // Segger
        	Color = b + ((U16)g << 8) + ((U32)r << 16) + ((U32)0xFF << 24); // we

to make the image visible again.

Similar threads