mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
Code update for Window Maker version 0.50.0
Read changes in ChangeLog and NEWS
This commit is contained in:
11
wrlib/jpeg.c
11
wrlib/jpeg.c
@@ -137,13 +137,6 @@ RLoadJPEG(RContext *context, char *file_name, int index)
|
||||
goto bye;
|
||||
}
|
||||
|
||||
image = RCreateImage(cinfo.image_width, cinfo.image_height, False);
|
||||
if (!image) {
|
||||
RErrorCode = RERR_NOMEMORY;
|
||||
goto bye;
|
||||
}
|
||||
|
||||
|
||||
if(cinfo.jpeg_color_space==JCS_GRAYSCALE) {
|
||||
cinfo.out_color_space=JCS_GRAYSCALE;
|
||||
} else
|
||||
@@ -175,9 +168,9 @@ RLoadJPEG(RContext *context, char *file_name, int index)
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
jpeg_finish_decompress(&cinfo);
|
||||
*/
|
||||
|
||||
bye:
|
||||
jpeg_destroy_decompress(&cinfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user