aboutsummaryrefslogtreecommitdiff
path: root/src/BMPImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BMPImage.cpp')
-rw-r--r--src/BMPImage.cpp2
1 files changed, 2 insertions, 0 deletions
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();