From: "Rodolfo García Peñas (kix)" <k...@kix.es> The context argumetn is now not used, so can be removed. --- wrlib/imgformat.h | 2 +- wrlib/jpeg.c | 2 +- wrlib/load.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/wrlib/imgformat.h b/wrlib/imgformat.h index c7e4024..07b021a 100644 --- a/wrlib/imgformat.h +++ b/wrlib/imgformat.h @@ -61,7 +61,7 @@ RImage *RLoadPNG(RContext *context, const char *file); #endif #ifdef USE_JPEG -RImage *RLoadJPEG(RContext *context, const char *file); +RImage *RLoadJPEG(const char *file); #endif #ifdef USE_GIF diff --git a/wrlib/jpeg.c b/wrlib/jpeg.c index 08fa47d..2648c40 100644 --- a/wrlib/jpeg.c +++ b/wrlib/jpeg.c @@ -91,7 +91,7 @@ static void my_error_exit(j_common_ptr cinfo) longjmp(myerr->setjmp_buffer, 1); } -RImage *RLoadJPEG(RContext * context, const char *file_name) +RImage *RLoadJPEG(const char *file_name) { RImage *image = NULL; struct jpeg_decompress_struct cinfo; diff --git a/wrlib/load.c b/wrlib/load.c index 5e1bde6..94ef564 100644 --- a/wrlib/load.c +++ b/wrlib/load.c @@ -180,7 +180,7 @@ RImage *RLoadImage(RContext * context, const char *file, int index) #ifdef USE_JPEG case IM_JPEG: - image = RLoadJPEG(context, file); + image = RLoadJPEG(file); break; #endif /* USE_JPEG */ -- 1.7.10.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.