diff --git a/gfxconf.example.h b/gfxconf.example.h index 9963188e..f35adda1 100644 --- a/gfxconf.example.h +++ b/gfxconf.example.h @@ -49,6 +49,7 @@ #define GDISP_NEED_IMAGE FALSE #define GDISP_NEED_MULTITHREAD FALSE #define GDISP_NEED_STREAMING FALSE +#define GDISP_NEED_STARTUP_LOGO TRUE /* GDISP - text features */ #define GDISP_NEED_ANTIALIAS FALSE diff --git a/include/gdisp/options.h b/include/gdisp/options.h index 650e81c5..35cccea3 100644 --- a/include/gdisp/options.h +++ b/include/gdisp/options.h @@ -20,6 +20,14 @@ * @name GDISP Functionality to be included * @{ */ + /** + * @brief Should the startup logo be displayed + * + * @details Defaults to TRUE + */ + #ifndef GDISP_NEED_STARTUP_LOGO + #define GDISP_NEED_STARTUP_LOGO TRUE + #endif /** * @brief Should drawing operations be automatically flushed. * @details Defaults to FALSE diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 8af496b3..c2819e38 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -28,7 +28,11 @@ #endif // Number of milliseconds for the startup logo - 0 means disabled. -#define GDISP_STARTUP_LOGO_TIMEOUT 1000 +#if GDISP_NEED_STARTUP_LOGO + #define GDISP_STARTUP_LOGO_TIMEOUT 1000 +#else + #define GDISP_STARTUP_LOGO_TIMEOUT 0 +#endif // The color to clear the display on startup #define GDISP_STARTUP_COLOR Black