From 4d5d07beeef8ae4b7daf602bf66216ed8ff81442 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 6 May 2026 15:55:37 +1200 Subject: feat: Started on PNG writing implementation --- src/BMPImage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/BMPImage.cpp') diff --git a/src/BMPImage.cpp b/src/BMPImage.cpp index a22e65d..3e3f675 100644 --- a/src/BMPImage.cpp +++ b/src/BMPImage.cpp @@ -117,6 +117,7 @@ namespace TehImage for(int y = height-1; y >= 0; y--) { + writer.flushBuffer(); for(int x = 0; x < width; x++) { Pixel& pixel = (*this)[x,y]; @@ -125,6 +126,7 @@ namespace TehImage writer.writeData(pixel.r); } writer.zeroBytes((4-((width * 3)%4))%4); + writer.flushBuffer(); } writer.close(); -- cgit v1.2.3