GUI_BMP_Draw() emWin5.36 works but GUI_BMP_Draw() emWin5.46 not

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

    • GUI_BMP_Draw() emWin5.36 works but GUI_BMP_Draw() emWin5.46 not

      Hello to all,

      With emWin 5.36, all works fine.
      However since we updated to emWin 5.46 the GUI_BMP_Draw() function does not display a bitmap correct anymore.
      It is gray with some blue curved lines in it.
      This is the source code of a callback function to draw the elements:

      void cbMsgBoxBack(WM_MESSAGE * pMsg) {
      u16 ScrWidth;
      switch (pMsg->MsgId) {
      case WM_PAINT:
      ScrWidth = InitMsgBox(pMsg);
      GUI_DispStringHCenterAt(strGet(Nach_MessFirst1_t), 60 + (ScrWidth-60)/2, 5);
      GUI_DispStringHCenterAt(strGet(Nach_MessFirst11_t), 60 + (ScrWidth-60)/2, 30);
      GUI_BMP_Draw(&_acM_Back, 5, 5);
      break;


      default:
      WM_DefaultProc(pMsg);
      }
      }

      I have attached the original bitmap as well as the converted c-file using Bin2C - Converter (both files are in M_Back.zip)

      I would be very happy to know what we can to run the application also with emWin5.46 rather than stay with emWin5.36

      Thank you for your help
      Andy
      Files
      • M_Back.zip

        (2.01 kB, downloaded 320 times, last: )
    • Hi,

      we have fixed some issues regarding BMPs between the release of the first version of V5.46 and V5.48. If possible you should try version 5.48.

      You can also try the simulation trial found on our website (first entry under Software):
      segger.com/downloads/emwin/

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.