Original
Correct
Original
Correct
#define COLOR_CONVERSION_0 GUICC_M8888I #define DISPLAY_DRIVER_0 GUIDRV_LIN_32
Correct
#define COLOR_CONVERSION_0 GUICC_M888 #define DISPLAY_DRIVER_0 GUIDRV_LIN_24
Original
static inline U32 LCD_LL_GetPixelformat(U32 LayerIndex) { if (LayerIndex == 0) { return LTDC_PIXEL_FORMAT_ARGB8888; } else { return LTDC_PIXEL_FORMAT_ARGB1555; } }
Correct
static uint32_t LCD_LL_GetPixelformat(uint32_t LayerIndex) { const LCD_API_COLOR_CONV * pColorConvAPI; if (LayerIndex >= GUI_NUM_LAYERS) { return 0; } pColorConvAPI = layer_prop[LayerIndex].pColorConvAPI; if (pColorConvAPI == GUICC_M8888I) { return LTDC_PIXEL_FORMAT_ARGB8888; } else if (pColorConvAPI == GUICC_M888) { return LTDC_PIXEL_FORMAT_RGB888; } else if (pColorConvAPI == GUICC_M565) { return LTDC_PIXEL_FORMAT_RGB565; } else if (pColorConvAPI == GUICC_M1555I) { return LTDC_PIXEL_FORMAT_ARGB1555; } else if (pColorConvAPI == GUICC_M4444I) { return LTDC_PIXEL_FORMAT_ARGB4444; } else if (pColorConvAPI == GUICC_8666) { return LTDC_PIXEL_FORMAT_L8; } else if (pColorConvAPI == GUICC_1616I) { return LTDC_PIXEL_FORMAT_AL44; } else if (pColorConvAPI == GUICC_88666I) { return LTDC_PIXEL_FORMAT_AL88; } while (1); } |
Комментариев нет:
Отправить комментарий