bugfixes and reduced version for disco board only
Dependents: Scope DISCO-F746NG_Sinewave DISCO-F746NG_Sweep DISCO-F746NG_Oscilloscope ... more
Fork of BSP_DISCO_F746NG_patch by
Diff: stm32746g_discovery_lcd.c
- Revision:
- 3:3c0a51826ecc
- Parent:
- 0:c9112f0c67e3
- Child:
- 5:2f60f0b3fd96
--- a/stm32746g_discovery_lcd.c Thu Nov 12 21:21:34 2015 +0000 +++ b/stm32746g_discovery_lcd.c Thu Nov 12 22:01:11 2015 +0000 @@ -499,7 +499,7 @@ if(hLtdcHandler.LayerCfg[ActiveLayer].PixelFormat == LTDC_PIXEL_FORMAT_ARGB8888) { /* Read data value from SDRAM memory */ - ret = *(__IO uint32_t*) (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (2*(Ypos*BSP_LCD_GetXSize() + Xpos))); + ret = *(__IO uint32_t*) (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (4*(Ypos*BSP_LCD_GetXSize() + Xpos))); } else if(hLtdcHandler.LayerCfg[ActiveLayer].PixelFormat == LTDC_PIXEL_FORMAT_RGB888) { @@ -1372,7 +1372,8 @@ } else { - BSP_LCD_DrawPixel((Xpos + j), Ypos, DrawProp[ActiveLayer].BackColor); + if (DrawProp[ActiveLayer].BackColor!=0x00000000) + BSP_LCD_DrawPixel((Xpos + j), Ypos, DrawProp[ActiveLayer].BackColor); } } Ypos++;