mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-20 02:15:06 +00:00
- 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
12 lines
377 B
C
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;
|
|
}
|