feat: Add JPEG decoder configuration and fix LCD color inversion
This commit is contained in:
@@ -28,7 +28,7 @@ std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
|
|||||||
.swapXY = true,
|
.swapXY = true,
|
||||||
.mirrorX = false,
|
.mirrorX = false,
|
||||||
.mirrorY = false,
|
.mirrorY = false,
|
||||||
.invertColor = false,
|
.invertColor = true,
|
||||||
.swapBytes = true,
|
.swapBytes = true,
|
||||||
.bufferSize = LCD_BUFFER_SIZE,
|
.bufferSize = LCD_BUFFER_SIZE,
|
||||||
.touch = createTouch(),
|
.touch = createTouch(),
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ bool isSupportedAppFile(const std::string& filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool isSupportedImageFile(const std::string& filename) {
|
bool isSupportedImageFile(const std::string& filename) {
|
||||||
// Currently only the PNG library is built into Tactility
|
std::string filename_lower = string::lowercase(filename);
|
||||||
return string::lowercase(filename).ends_with(".png");
|
return filename_lower.ends_with(".png") ||
|
||||||
|
filename_lower.ends_with(".jpg") ||
|
||||||
|
filename_lower.ends_with(".jpeg");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isSupportedTextFile(const std::string& filename) {
|
bool isSupportedTextFile(const std::string& filename) {
|
||||||
|
|||||||
Reference in New Issue
Block a user