diff options
Diffstat (limited to 'src/gdisp')
-rw-r--r-- | src/gdisp/gdisp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 7eade99c..6964bfff 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -587,6 +587,15 @@ void _gdispInit(void) { g->flags = 0; gdisp_lld_init(g); + #if defined(GDISP_DEFAULT_ORIENTATION) && GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL + g->p.x = GDISP_CONTROL_ORIENTATION; + g->p.ptr = GDISP_DEFAULT_ORIENTATION; + #if GDISP_HARDWARE_CONTROL == HARDWARE_AUTODETECT + if (g->vmt->control) + #endif + gdisp_lld_control(g); + #endif + // Set the initial clipping region #if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP |