summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-11-11 20:58:09 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-11-11 20:58:09 +0100
commit6d1f5608ba155e57e7f9efb7925de634e59e7369 (patch)
tree7ccc2d7d690c29323c383199afe270673bc9aa3a /FL
parent500e470d392a547e6b72ac3fec92e0cd638c0d2f (diff)
Support all image depths (1-4) in fl_write_png()
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_PNG_Image.H4
1 files changed, 2 insertions, 2 deletions
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