diff options
author | James Bursa <james@netsurf-browser.org> | 2004-03-11 02:19:14 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-03-11 02:19:14 +0000 |
commit | fba46de9cbe8778919f68a7d24e242c7ee3f1331 (patch) | |
tree | 8fb266a75da3b79c2a2285d0d9e6fb8b8e9d8f91 /riscos/png.c | |
parent | 24da56f25d8986484d2294d8ada3348acf12c0b1 (diff) | |
download | netsurf-fba46de9cbe8778919f68a7d24e242c7ee3f1331.tar.gz netsurf-fba46de9cbe8778919f68a7d24e242c7ee3f1331.tar.bz2 |
[project @ 2004-03-11 02:19:13 by bursa]
Add source_data to content structure and remove equivalents from individual contents.
svn path=/import/netsurf/; revision=606
Diffstat (limited to 'riscos/png.c')
-rw-r--r-- | riscos/png.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/riscos/png.c b/riscos/png.c index 5c1f0d14a..73d581dc5 100644 --- a/riscos/png.c +++ b/riscos/png.c @@ -2,7 +2,7 @@ * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2003 James Bursa <bursa@users.sourceforge.net> + * Copyright 2004 James Bursa <bursa@users.sourceforge.net> * Copyright 2004 Richard Wilson <not_ginger_matt@hotmail.com> */ @@ -11,10 +11,7 @@ #include <string.h> #include <stdlib.h> #include <swis.h> -#include "ifc.h" #include "libpng/png.h" -#include "oslib/colourtrans.h" -#include "oslib/os.h" #include "oslib/osspriteop.h" #include "netsurf/utils/config.h" #include "netsurf/content/content.h" @@ -82,14 +79,12 @@ void nspng_process_data(struct content *c, char *data, unsigned long size) void info_callback(png_structp png, png_infop info) { - int i, bit_depth, color_type, interlace; + int bit_depth, color_type, interlace; unsigned int rowbytes, sprite_size; unsigned long width, height; struct content *c = png_get_progressive_ptr(png); osspriteop_area *sprite_area; osspriteop_header *sprite; - png_color_16 *png_background; - png_color_16 default_background = {0, 0xffff, 0xffff, 0xffff, 0xffff}; /* Read the PNG details */ @@ -118,7 +113,7 @@ void info_callback(png_structp png, png_infop info) sprite->left_bit = 0; sprite->right_bit = 31; sprite->mask = sprite->image = sizeof(*sprite); - sprite->mode = 0x301680b5; + sprite->mode = (os_mode) 0x301680b5; /* Store the sprite area */ @@ -219,16 +214,6 @@ int nspng_convert(struct content *c, unsigned int width, unsigned int height) } -void nspng_revive(struct content *c, unsigned int width, unsigned int height) -{ -} - - -void nspng_reformat(struct content *c, unsigned int width, unsigned int height) -{ -} - - void nspng_destroy(struct content *c) { xfree(c->title); |