Bug in GUI_PNG.c

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • 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 Source Code

    1. #if (GUI_USE_ARGB)
    2. //Color = b + ((U16)g << 8) + ((U32)r << 16); // Segger
    3. Color = b + ((U16)g << 8) + ((U32)r << 16) + ((U32)0xFF << 24); // we
    4. #else


    to make the image visible again.