summaryrefslogtreecommitdiff
path: root/src/imagealgos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imagealgos.cpp')
-rw-r--r--src/imagealgos.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/imagealgos.cpp b/src/imagealgos.cpp
index a293803..ff80402 100644
--- a/src/imagealgos.cpp
+++ b/src/imagealgos.cpp
@@ -32,8 +32,9 @@ size_t pgm_save(Image *img, FILE *outfile, bool really_save)
size_t n{0};
- n += sprintf((char*)pgm_image, "P5\n%d %d\n%d\n",
- img->width, img->height, 0xFF);
+ // n += sprintf((char*)pgm_image, "P5\n%d %d\n%d\n",
+ // img->width, img->height, 0xFF);
+ n += sprintf((char *) pgm_image, "P5\n%d %d\n%d\n", int(img_width), int(img_height), 0xFF);
// #ifdef RADXA_ZERO_3E
// for (size_t row{0}; row < img_height; ++row) {