mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
Removed context argument in jpeg files
The context argumetn is now not used, so can be removed.
This commit is contained in:
committed by
Carlos R. Mafra
parent
d1f9b80171
commit
82aea844d0
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user