unleashed-firmware/applications/services/gui/icon.c
hedger 03196fa110
cleanup of various warnings from clangd (#3682)
* cleanup of various warnings from clangs
* lfrfid_debug: cast fixes
* subghz: binraw: round->roundf
* furi: thread: updated internal stack size variable to size_t
* github: fail faster on unsuccessful build
* unit_tests: double trouble
2024-06-03 14:43:23 +01:00

32 lines
690 B
C

#include "icon.h"
#include "icon_i.h" // IWYU pragma: keep
#include <furi.h>
#include <furi.h>
uint16_t icon_get_width(const Icon* instance) {
furi_check(instance);
return instance->width;
}
uint16_t icon_get_height(const Icon* instance) {
furi_check(instance);
return instance->height;
}
const uint8_t* icon_get_data(const Icon* instance) {
furi_check(instance);
return icon_get_frame_data(instance, 0);
}
uint32_t icon_get_frame_count(const Icon* instance) {
return instance->frame_count;
}
const uint8_t* icon_get_frame_data(const Icon* instance, uint32_t frame) {
furi_check(frame < instance->frame_count);
return instance->frames[frame];
}