From fb37523537cdb69a31dede401a604981ce8b7b9d Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Sat, 17 Jun 2017 11:28:39 +1000 Subject: Updated coding style, added progress log --- src/c_fl_image.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/c_fl_image.cpp') diff --git a/src/c_fl_image.cpp b/src/c_fl_image.cpp index a02c683..3323c25 100644 --- a/src/c_fl_image.cpp +++ b/src/c_fl_image.cpp @@ -4,22 +4,21 @@ #include "c_fl_image.h" + + IMAGE new_fl_image(int w, int h, int d) { Fl_Image *i = new Fl_Image(w, h, d); return i; } - void free_fl_image(IMAGE i) { delete reinterpret_cast(i); } - IMAGE fl_image_copy(IMAGE i, int w, int h) { return reinterpret_cast(i)->copy(w, h); } - IMAGE fl_image_copy2(IMAGE i) { return reinterpret_cast(i)->copy(); } @@ -31,27 +30,28 @@ void fl_image_color_average(IMAGE i, int c, float b) { reinterpret_cast(i)->color_average(c, b); } - void fl_image_desaturate(IMAGE i) { reinterpret_cast(i)->desaturate(); } + + void fl_image_inactive(IMAGE i) { reinterpret_cast(i)->inactive(); } + + int fl_image_w(IMAGE i) { return reinterpret_cast(i)->w(); } - int fl_image_h(IMAGE i) { return reinterpret_cast(i)->h(); } - int fl_image_d(IMAGE i) { return reinterpret_cast(i)->d(); } -- cgit