diff --git a/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c b/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c index a2c5955f..5ec9a427 100644 --- a/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c +++ b/drivers/gdisp/STM32LTDC/gdisp_lld_STM32LTDC.c @@ -301,6 +301,8 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay* g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { + case gOrientationPortrait: + case gOrientationLandscape: case gOrientation0: default: pos = PIXEL_POS(g, g->p.x, g->p.y); @@ -339,6 +341,8 @@ LLDSPEC gColor gdisp_lld_get_pixel_color(GDisplay* g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { + case gOrientationPortrait: + case gOrientationLandscape: case gOrientation0: default: pos = PIXEL_POS(g, g->p.x, g->p.y); @@ -400,6 +404,8 @@ LLDSPEC gColor gdisp_lld_get_pixel_color(GDisplay* g) { g->g.Height = tmp; } break; + case gOrientationPortrait: + case gOrientationLandscape: default: return; } @@ -474,6 +480,8 @@ LLDSPEC gColor gdisp_lld_get_pixel_color(GDisplay* g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { + case gOrientationPortrait: + case gOrientationLandscape: case gOrientation0: default: pos = PIXEL_POS(g, g->p.x, g->p.y); diff --git a/drivers/gdisp/STM32LTDC/readme.md b/drivers/gdisp/STM32LTDC/readme.md index 564f6d59..3489fc43 100644 --- a/drivers/gdisp/STM32LTDC/readme.md +++ b/drivers/gdisp/STM32LTDC/readme.md @@ -12,6 +12,10 @@ To use this driver: 3. Add a `board_STM32LTDC.h` to you project directory (or board directory) based on one of the templates. + +# Limitations +Currently, both `gOrientationPortrait` and `gOrientationLandscape` are not supported by this driver. + # Configuration Configuration options available in `gfxconf.h`: