From 6d1f5608ba155e57e7f9efb7925de634e59e7369 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 11 Nov 2021 20:58:09 +0100 Subject: Support all image depths (1-4) in fl_write_png() --- FL/Fl_PNG_Image.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL') diff --git a/FL/Fl_PNG_Image.H b/FL/Fl_PNG_Image.H index 21a01d16b..f0910a515 100644 --- a/FL/Fl_PNG_Image.H +++ b/FL/Fl_PNG_Image.H @@ -39,8 +39,8 @@ private: // Support functions to write PNG image files (since 1.4.0) -FL_EXPORT int fl_write_png(const char *filename, int w, int h, int d, const unsigned char *pixels); - FL_EXPORT int fl_write_png(const char *filename, Fl_RGB_Image *img); +FL_EXPORT int fl_write_png(const char *filename, const char *pixels, int w, int h, int d=3, int ld=0); +FL_EXPORT int fl_write_png(const char *filename, const unsigned char *pixels, int w, int h, int d=3, int ld=0); #endif -- cgit v1.2.3