summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/pictureflow/pictureflow.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 3074771e32..73eee2e4c4 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -2022,13 +2022,7 @@ static bool save_pfraw(char* filename, struct bitmap *bm)
2022 int fh = rb->open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0666); 2022 int fh = rb->open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0666);
2023 if( fh < 0 ) return false; 2023 if( fh < 0 ) return false;
2024 rb->write( fh, &bmph, sizeof( struct pfraw_header ) ); 2024 rb->write( fh, &bmph, sizeof( struct pfraw_header ) );
2025 pix_t *data = (pix_t*)( bm->data ); 2025 rb->write( fh, bm->data , sizeof( pix_t ) * bm->width * bm->height );
2026 int y;
2027 for( y = 0; y < bm->height; y++ )
2028 {
2029 rb->write( fh, data , sizeof( pix_t ) * bm->width );
2030 data += bm->width;
2031 }
2032 rb->close( fh ); 2026 rb->close( fh );
2033 return true; 2027 return true;
2034} 2028}