refactor: Deduplicated BMP header writing in Xtc (#1439) by znelson

This commit is contained in:
jpirnay
2026-04-10 11:29:57 +02:00
parent c42452df8e
commit c97f16b576
4 changed files with 22 additions and 96 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ bool ScreenshotUtil::saveFramebufferAsBmp(const char* filename, const uint8_t* f
BmpHeader header;
createBmpHeader(&header, phyWidth, phyHeight);
createBmpHeader(&header, phyWidth, phyHeight, BmpRowOrder::BottomUp);
bool write_error = false;
if (file.write(reinterpret_cast<uint8_t*>(&header), sizeof(header)) != sizeof(header)) {