11/*********************************************************************
2- * SEGGER Microcontroller GmbH & Co. KG *
2+ * SEGGER Microcontroller GmbH *
33* Solutions for real time microcontroller applications *
44**********************************************************************
55* *
6- * (c) 1996 - 2011 SEGGER Microcontroller GmbH & Co. KG *
6+ * (c) 1996 - 2022 SEGGER Microcontroller GmbH *
77* *
88* Internet: www.segger.com Support: [email protected] * 99* *
1010**********************************************************************
1111
12- ** emWin V5.08 - Graphical user interface for embedded applications **
12+ ** emWin V6.28 - Graphical user interface for embedded applications **
1313emWin is protected by international copyright laws. Knowledge of the
1414source code may not be used to write a similar product. This file may
15- only be used in accordance with a license and should not be re-
15+ only be used in accordance with a license and should not be re-
1616distributed in any way. We appreciate your understanding and fairness.
1717----------------------------------------------------------------------
1818File : LCDConf.c
@@ -31,14 +31,17 @@ Purpose : Display controller configuration (single layer)
3131//
3232// Physical display size
3333//
34- #define XSIZE_PHYS 320
35- #define YSIZE_PHYS 240
36- #define VYSIZE_PHYS (YSIZE_PHYS << 1)
34+ #define XSIZE_PHYS 320
35+ #define YSIZE_PHYS 240
3736
3837//
3938// Color conversion
4039//
41- #define COLOR_CONVERSION GUICC_8888
40+ #if GUI_USE_ARGB
41+ #define COLOR_CONVERSION GUICC_M8888I
42+ #else
43+ #define COLOR_CONVERSION GUICC_8888
44+ #endif
4245
4346//
4447// Display driver
@@ -95,7 +98,7 @@ void LCD_X_Config(void) {
9598 //
9699 GUI_DEVICE_CreateAndLink (DISPLAY_DRIVER , COLOR_CONVERSION , 0 , 0 );
97100 //
98- // Display driver configuration, required for Lin-driver
101+ // Display driver configuration
99102 //
100103 LCD_SetSizeEx (0 , XSIZE_PHYS , YSIZE_PHYS );
101104 LCD_SetVSizeEx (0 , VXSIZE_PHYS , VYSIZE_PHYS );
0 commit comments