refactor: Deduplicated BMP header writing in Xtc (#1439) by znelson
This commit is contained in:
1 parent
c42452df8e
commit
c97f16b576
4 files changed
+22
-96
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user