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
Display All
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
- case LCD_X_SETSIZE: {
- //
- // Required for setting the layer position which is passed in the 'xPos' and 'yPos' element of pData
- //
- LCD_X_SETSIZE_INFO * p;
- int xPos, yPos;
- GUI_GetLayerPosEx(LayerIndex, &xPos, &yPos);
- p = (LCD_X_SETSIZE_INFO *)pData;
- if (LCD_GetSwapXYEx((int)LayerIndex)) {
- _axSize[LayerIndex] = p->ySize;
- _aySize[LayerIndex] = p->xSize;
- } else {
- _axSize[LayerIndex] = p->xSize;
- _aySize[LayerIndex] = p->ySize;
- }
- //bug, is using Pos when it should be Size
- //_LCD_SetLayerSize((int)LayerIndex, xPos, yPos);
- LCD_SetLayerSize((int)LayerIndex, _axSize[LayerIndex], _aySize[LayerIndex]);
- break;