diff --git a/apps/gui/icon.c b/apps/gui/icon.c index e943338af5..73f37e5140 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -277,3 +277,17 @@ int get_icon_height(enum screen_type screen_type) { return ICON_HEIGHT(screen_type); } + +#if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) +int get_icon_format(enum screen_type screen) +{ + const struct bitmap *iconset; + + if (iconsets[Iconset_user][screen].loaded) + iconset = &iconsets[Iconset_user][screen].bmp; + else + iconset = inbuilt_iconset[screen]; + + return iconset->format; +} +#endif diff --git a/apps/gui/icon.h b/apps/gui/icon.h index 9304ad9077..e095ccfc4c 100644 --- a/apps/gui/icon.h +++ b/apps/gui/icon.h @@ -113,6 +113,14 @@ void icons_init(void); #else int get_icon_width(enum screen_type screen_type); int get_icon_height(enum screen_type screen_type); +int get_icon_format(enum screen_type screen_type); +#endif + +#if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) \ + && !defined(HAVE_LCD_CHARCELLS) +int get_icon_format(enum screen_type screen_type); +#else +# define get_icon_format(a) FORMAT_MONO #endif