Ken Van Hoeylandt 3250943345
Screenshot app & service (#42)
- Added screenshot app & service (PC-only for now)
- Updated docs with screenshots and new device photo
- Add fake statusbar icons for PC/sim build
- added `lv_screenshot` library based on `lv_100ask_screenshot` from https://github.com/100askTeam/lv_lib_100ask
- T-Deck WiFi is now allocated into SPI RAM
- Created `tt_service_find()` to find services by their id
2024-02-11 22:40:53 +01:00

12 lines
377 B
C

#include "save_png.h"
#include "src/extra/libs/png/lodepng.h"
bool lv_screenshot_save_png_file(const uint8_t* image, uint32_t w, uint32_t h, uint32_t bpp, const char* filename) {
if (bpp == 32) {
return lodepng_encode32_file(filename, image, w, h);
} else if (bpp == 24) {
return lodepng_encode24_file(filename, image, w, h);
}
return false;
}