From 82aea844d05f1b19d20a919dfffd7b3737f3de51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Thu, 5 Sep 2013 21:08:15 +0200 Subject: [PATCH] Removed context argument in jpeg files 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 c7e40243..07b021a4 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 08fa47db..2648c400 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 5e1bde61..94ef5640 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 */