diff --git a/ChangeLog b/ChangeLog index 3eaa45621e..9c7be4e864 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11149,4 +11149,7 @@ simulator that supports access to the host file system from the simulation. From Ken Petit (2015-11-25). * libc/time/lib_strftime.c: Add day-of-week support. (2015-11-25). + * drivers/lcd/ili9432.c: Fixed errors in orientation. Portrait, + RPortrait, and RLandscript should work correly now. They were + displayed mirrored. From Marco Krahl (2015-11-25). diff --git a/drivers/lcd/ili9341.c b/drivers/lcd/ili9341.c index 7fb8612db7..1c19187ab5 100644 --- a/drivers/lcd/ili9341.c +++ b/drivers/lcd/ili9341.c @@ -195,9 +195,9 @@ */ #define ILI9341_MADCTL_PORTRAIT_MY 0 -#define ILI9341_MADCTL_PORTRAIT_MX 0 +#define ILI9341_MADCTL_PORTRAIT_MX ILI9341_MEMORY_ACCESS_CONTROL_MX #define ILI9341_MADCTL_PORTRAIT_MV 0 -#define ILI9341_MADCTL_PORTRAIT_ML 0 +#define ILI9341_MADCTL_PORTRAIT_ML ILI9341_MEMORY_ACCESS_CONTROL_ML #ifdef CONFIG_BIG_ENDIAN # define ILI9341_MADCTL_PORTRAIT_BGR 0 #else @@ -221,7 +221,7 @@ * MH: 0 */ -#define ILI9341_MADCTL_RLANDSCAPE_MY 0 +#define ILI9341_MADCTL_RLANDSCAPE_MY ILI9341_MEMORY_ACCESS_CONTROL_MY #define ILI9341_MADCTL_RLANDSCAPE_MX ILI9341_MEMORY_ACCESS_CONTROL_MX #define ILI9341_MADCTL_RLANDSCAPE_MV ILI9341_MEMORY_ACCESS_CONTROL_MV #define ILI9341_MADCTL_RLANDSCAPE_ML 0 @@ -252,9 +252,9 @@ */ #define ILI9341_MADCTL_RPORTRAIT_MY ILI9341_MEMORY_ACCESS_CONTROL_MY -#define ILI9341_MADCTL_RPORTRAIT_MX ILI9341_MEMORY_ACCESS_CONTROL_MX +#define ILI9341_MADCTL_RPORTRAIT_MX 0 #define ILI9341_MADCTL_RPORTRAIT_MV 0 -#define ILI9341_MADCTL_RPORTRAIT_ML 0 +#define ILI9341_MADCTL_RPORTRAIT_ML ILI9341_MEMORY_ACCESS_CONTROL_ML #ifdef CONFIG_BIG_ENDIAN # define ILI9341_MADCTL_RPORTRAIT_BGR 0 #else