summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-09-03 22:44:48 +0000
committerJames Bursa <james@netsurf-browser.org>2004-09-03 22:44:48 +0000
commit3371a27391e828c6417e6d805572cf261b138785 (patch)
treef016defaa63ffc6e78e95d607cda00246df83206 /content/content.h
parentfb5082605cc100b493717bce25cb6bf6123e03d0 (diff)
downloadnetsurf-3371a27391e828c6417e6d805572cf261b138785.tar.gz
netsurf-3371a27391e828c6417e6d805572cf261b138785.tar.bz2
[project @ 2004-09-03 22:44:47 by bursa]
Add generic bitmap functions. Move jpeg and mng code from riscos/ to image/ and update to use bitmap. Note: background tiling and drawfile export for jpeg and mng/png are broken. svn path=/import/netsurf/; revision=1265
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/content/content.h b/content/content.h
index 4a28eb442..19d60fe6e 100644
--- a/content/content.h
+++ b/content/content.h
@@ -102,7 +102,7 @@
#include "netsurf/css/css.h"
#include "netsurf/render/html.h"
#ifdef WITH_JPEG
-#include "netsurf/riscos/jpeg.h"
+#include "netsurf/image/jpeg.h"
#endif
#ifdef WITH_GIF
#include "netsurf/riscos/gif.h"
@@ -110,11 +110,8 @@
#ifdef WITH_PLUGIN
#include "netsurf/riscos/plugin.h"
#endif
-#ifdef WITH_PNG
-#include "netsurf/riscos/png.h"
-#endif
#ifdef WITH_MNG
-#include "netsurf/riscos/mng.h"
+#include "netsurf/image/mng.h"
#endif
#ifdef WITH_SPRITE
#include "netsurf/riscos/sprite.h"
@@ -124,6 +121,7 @@
#endif
+struct bitmap;
struct box;
struct browser_window;
struct content;
@@ -208,9 +206,6 @@ struct content {
#ifdef WITH_GIF
struct content_gif_data gif;
#endif
-#ifdef WITH_PNG
- struct content_png_data png;
-#endif
#ifdef WITH_MNG
struct content_mng_data mng;
#endif
@@ -225,6 +220,9 @@ struct content {
#endif
} data;
+ /** Bitmap, for various image contents. */
+ struct bitmap *bitmap;
+
/** This content may be given to new users. Indicates that the content
* was fetched using a simple GET, has not expired, and may be
* shared between users. */