blob: e78d71c5794ca8574661b89c84bf4887430cbb20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- netsurf-3.4/image/image.c
+++ netsurf-3.4/image/image.c
@@ -26,14 +26,28 @@
#include "desktop/gui_internal.h"
#include "image/bitmap.h"
+#ifdef WITH_BMP
#include "image/bmp.h"
-#include "image/gif.h"
#include "image/ico.h"
+#endif
+#ifdef WITH_GIF
+#include "image/gif.h"
+#endif
+#ifdef WITH_JPEG
#include "image/jpeg.h"
+#endif
+#ifdef WITH_NSSPRITE
#include "image/nssprite.h"
+#endif
+#ifdef WITH_PNG
#include "image/png.h"
+#endif
+#ifdef WITH_RSVG
#include "image/rsvg.h"
+#endif
+#ifdef WITH_NS_SVG
#include "image/svg.h"
+#endif
#include "image/image.h"
/**
@@ -68,6 +82,16 @@
if (error != NSERROR_OK)
return error;
#endif
+
+#ifdef WITH_MNG
+ error = nsmng_init();
+ if (error != NSERROR_OK)
+ return error;
+
+ error = nsjpng_init();
+ if (error != NSERROR_OK)
+ return error;
+#endif
#ifdef WITH_PNG
error = nspng_init();
|