STM32LTDC: Handle gOrientationPortrait and gOrientationLandscape explicitly although not supporting it

feature/sdl2_threaded^2
Joel Bodenmann 2021-08-23 15:26:15 +02:00
parent b3216fa0cc
commit b17cb215f4
2 changed files with 12 additions and 0 deletions

View File

@ -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);

View File

@ -13,6 +13,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`: