From e4b95396dd78a31483be0d601b128490f970093e Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Wed, 8 Jul 2026 23:20:06 -0400 Subject: [PATCH] feat: Add JPEG decoder configuration and fix LCD color inversion --- Devices/es3c28p/Source/devices/Display.cpp | 2 +- Tactility/Source/app/files/SupportedFiles.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Devices/es3c28p/Source/devices/Display.cpp b/Devices/es3c28p/Source/devices/Display.cpp index 4372e3cb..695b2851 100644 --- a/Devices/es3c28p/Source/devices/Display.cpp +++ b/Devices/es3c28p/Source/devices/Display.cpp @@ -28,7 +28,7 @@ std::shared_ptr createDisplay() { .swapXY = true, .mirrorX = false, .mirrorY = false, - .invertColor = false, + .invertColor = true, .swapBytes = true, .bufferSize = LCD_BUFFER_SIZE, .touch = createTouch(), diff --git a/Tactility/Source/app/files/SupportedFiles.cpp b/Tactility/Source/app/files/SupportedFiles.cpp index dcc10094..8cf634dd 100644 --- a/Tactility/Source/app/files/SupportedFiles.cpp +++ b/Tactility/Source/app/files/SupportedFiles.cpp @@ -10,8 +10,10 @@ bool isSupportedAppFile(const std::string& filename) { } bool isSupportedImageFile(const std::string& filename) { - // Currently only the PNG library is built into Tactility - return string::lowercase(filename).ends_with(".png"); + std::string filename_lower = string::lowercase(filename); + return filename_lower.ends_with(".png") || + filename_lower.ends_with(".jpg") || + filename_lower.ends_with(".jpeg"); } bool isSupportedTextFile(const std::string& filename) {