summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
Diffstat (limited to 'fluid')
-rw-r--r--fluid/fluid.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index fdc005d42..4124aa3fa 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -348,7 +348,7 @@ void save_template_cb(Fl_Widget *, void *) {
strcpy(ext, ".png");
errno = 0;
- if (fl_write_png(filename, w, h, 3, pixels) != 0) {
+ if (fl_write_png(filename, pixels, w, h, 3) != 0) {
delete[] pixels;
fl_alert("Error writing %s: %s", filename, strerror(errno));
return;