diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-27 11:03:43 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-27 11:03:43 +0100 |
commit | bbfc0ca353bb6a0b6a5ec50044c5c3f8bd714c12 (patch) | |
tree | f8cf4d1778b1d37c3c60990667020be80965f624 /content/handlers/image | |
parent | d33af429113159b1a1d7cf62f5d8894a015c6efb (diff) | |
download | netsurf-bbfc0ca353bb6a0b6a5ec50044c5c3f8bd714c12.tar.gz netsurf-bbfc0ca353bb6a0b6a5ec50044c5c3f8bd714c12.tar.bz2 |
Image: JPEG: Warn if not using libjpeg-turbo.
Replaces RISC OS warning with a more general and relevant one.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/jpeg.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/content/handlers/image/jpeg.c b/content/handlers/image/jpeg.c index 940f2394e..7d635f90c 100644 --- a/content/handlers/image/jpeg.c +++ b/content/handlers/image/jpeg.c @@ -50,13 +50,8 @@ */ #define MIN_JPEG_SIZE 20 -#ifdef riscos -/* We prefer the library to be configured with these options to save - * copying data during decoding. */ -#if RGB_RED != 0 || RGB_GREEN != 1 || RGB_BLUE != 2 || RGB_PIXELSIZE != 4 -#warning JPEG library not optimally configured. Decoding will be slower. -#endif -/* but we don't care if we're not on RISC OS */ +#ifndef LIBJPEG_TURBO_VERSION +#warning Using libjpeg (libjpeg-turbo is recommended) #endif static char nsjpeg_error_buffer[JMSG_LENGTH_MAX]; |