diff --git a/lv_misc/lv_color.h b/lv_misc/lv_color.h index b4c1b55699..5980084043 100644 --- a/lv_misc/lv_color.h +++ b/lv_misc/lv_color.h @@ -20,17 +20,19 @@ extern "C" { #endif /*Error checking*/ +#if LV_COLOR_DEPTH == 24 +#error "LV_COLOR_DEPTH 24 is deprecated. Use LV_COLOR_DEPTH 32 instead (lv_conf.h)" +#endif + #if LV_COLOR_DEPTH != 32 && LV_COLOR_SCREEN_TRANSP != 0 #error "LV_COLOR_SCREEN_TRANSP requires LV_COLOR_DEPTH == 32. Set it in lv_conf.h" #endif - #if LV_COLOR_DEPTH != 16 && LV_COLOR_16_SWAP != 0 #error "LV_COLOR_16_SWAP requires LV_COLOR_DEPTH == 16. Set it in lv_conf.h" #endif - #include /*********************