STM32LTDC: Handle gOrientationPortrait and gOrientationLandscape explicitly although not supporting it
This commit is contained in:
parent
b3216fa0cc
commit
b17cb215f4
@ -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);
|
||||
|
@ -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`:
|
||||
|
Loading…
Reference in New Issue
Block a user