style: fix clang-format issues

This commit is contained in:
Martin Brook 2026-01-30 19:26:22 +00:00
parent 12e9c3e29a
commit 8f7e734534
2 changed files with 3 additions and 5 deletions

View File

@ -49,9 +49,7 @@ ImageToFramebufferDecoder* ImageDecoderFactory::getDecoder(const std::string& im
return nullptr; return nullptr;
} }
bool ImageDecoderFactory::isFormatSupported(const std::string& imagePath) { bool ImageDecoderFactory::isFormatSupported(const std::string& imagePath) { return getDecoder(imagePath) != nullptr; }
return getDecoder(imagePath) != nullptr;
}
std::vector<std::string> ImageDecoderFactory::getSupportedFormats() { std::vector<std::string> ImageDecoderFactory::getSupportedFormats() {
std::vector<std::string> formats; std::vector<std::string> formats;

View File

@ -80,8 +80,8 @@ static int32_t pngSeekWithHandle(PNGFILE* pFile, int32_t pos) {
static PNG png; static PNG png;
bool PngToFramebufferConverter::getDimensionsStatic(const std::string& imagePath, ImageDimensions& out) { bool PngToFramebufferConverter::getDimensionsStatic(const std::string& imagePath, ImageDimensions& out) {
int rc = png.open(imagePath.c_str(), pngOpenWithHandle, pngCloseWithHandle, pngReadWithHandle, pngSeekWithHandle, int rc =
nullptr); png.open(imagePath.c_str(), pngOpenWithHandle, pngCloseWithHandle, pngReadWithHandle, pngSeekWithHandle, nullptr);
if (rc != 0) { if (rc != 0) {
Serial.printf("[%lu] [PNG] Failed to open PNG for dimensions: %d\n", millis(), rc); Serial.printf("[%lu] [PNG] Failed to open PNG for dimensions: %d\n", millis(), rc);