summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-27 11:03:43 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-27 11:03:43 +0100
commitbbfc0ca353bb6a0b6a5ec50044c5c3f8bd714c12 (patch)
treef8cf4d1778b1d37c3c60990667020be80965f624
parentd33af429113159b1a1d7cf62f5d8894a015c6efb (diff)
downloadnetsurf-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.
-rw-r--r--content/handlers/image/jpeg.c9
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];