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

This commit is contained in:
jpirnay committed 2026-04-10 11:29:57 +02:00
1 parent c42452df8e
commit c97f16b576
4 files changed
+22 -96

No files matched your search

+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)) {