Bug? LCDConf.c (MDK Example, STM32F429-DISCO)

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

    • Bug? LCDConf.c (MDK Example, STM32F429-DISCO)

      Hi

      When working on another problem I noticed what may be a bug in the LCD driver (LTDC)? Size is being set using the position variables. See below and attached file.

      It is not (I don't think) causing me a problem. Just mentioned it as it may be an error and I know you guys are fastidious at getting stuff right.

      p.s.if you happen to have a newer version of this file I'd be happy to receive! It may fix the v.1.2.0 /v1.3.0 MDK-MW-Graphics problem I am experiencing. And if that newer version had the sync swapping code for NUM_BUFFER > 1 that would be great, too! I have a working version with all that but, as said, is giving me issues with USE_ARGB == 1

      Regards
      Mark

      Source Code

      1. case LCD_X_SETSIZE: {
      2. //
      3. // Required for setting the layer position which is passed in the 'xPos' and 'yPos' element of pData
      4. //
      5. LCD_X_SETSIZE_INFO * p;
      6. int xPos, yPos;
      7. GUI_GetLayerPosEx(LayerIndex, &xPos, &yPos);
      8. p = (LCD_X_SETSIZE_INFO *)pData;
      9. if (LCD_GetSwapXYEx((int)LayerIndex)) {
      10. _axSize[LayerIndex] = p->ySize;
      11. _aySize[LayerIndex] = p->xSize;
      12. } else {
      13. _axSize[LayerIndex] = p->xSize;
      14. _aySize[LayerIndex] = p->ySize;
      15. }
      16. //bug, is using Pos when it should be Size
      17. //_LCD_SetLayerSize((int)LayerIndex, xPos, yPos);
      18. LCD_SetLayerSize((int)LayerIndex, _axSize[LayerIndex], _aySize[LayerIndex]);
      19. break;
      Display All
      Files
      • LCDConf.txt

        (80.17 kB, downloaded 93 times, last: )