Widget Color Issue due to Migration

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

  • Widget Color Issue due to Migration

    Hi,

    My company has purchased emWin source code and I am migrating from the complied library to the source code.
    I am using the same display driver but the colors of the widgets are different now.
    Driver code:

    //
    // Color conversion
    //
    #define COLOR_CONVERSION GUICC_M565

    //
    // Display driver
    //
    #define DISPLAY_DRIVER GUIDRV_stm32F4x_SSD2119_API
    ...

    /* Create and link the driver */
    GUI_DEVICE_CreateAndLink(&DISPLAY_DRIVER, COLOR_CONVERSION, 0U, 0);
    ...

    In the new code, I noticed WIDGET_USE_FLEX_SKIN was defined as 1. I have changed that back to 0(verified documentation said default was zero and checked old project and it was 0) but the colors were still messed up.

    I'm sure this is a simple mistake I made, like something I forgot to configure.
    All windows background and font colors are correct.
    Having problems with Radio and Checkboxes (might be relate to an image draw).

    Please help.
    Thanks,
    Randy
  • Hello Randy,

    Please note that the GUIDRV_stm32F4x_SSD2119 was not created by SEGGER, so we are not able to support it. Since the colors are not displayed wrong in every case, I would assume that there is a problem in certain driver functions.

    Best regards,
    Adrian