r5459 joty - in /trunk/netsurf: content/ css/ image/ render/ riscos/

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 28 23:37:14 BST 2008


Author: joty
Date: Sun Sep 28 17:37:13 2008
New Revision: 5459

URL: http://source.netsurf-browser.org?rev=5459&view=rev
Log:
'unsigned long' -> 'colour' where it made sense.

Modified:
    trunk/netsurf/content/content.c
    trunk/netsurf/content/content.h
    trunk/netsurf/css/css.c
    trunk/netsurf/image/bmp.c
    trunk/netsurf/image/bmp.h
    trunk/netsurf/image/gif.c
    trunk/netsurf/image/gif.h
    trunk/netsurf/image/ico.c
    trunk/netsurf/image/ico.h
    trunk/netsurf/image/jpeg.c
    trunk/netsurf/image/jpeg.h
    trunk/netsurf/image/mng.c
    trunk/netsurf/image/mng.h
    trunk/netsurf/image/png.c
    trunk/netsurf/image/png.h
    trunk/netsurf/image/rsvg.c
    trunk/netsurf/image/rsvg.h
    trunk/netsurf/image/svg.c
    trunk/netsurf/image/svg.h
    trunk/netsurf/render/html.h
    trunk/netsurf/render/html_redraw.c
    trunk/netsurf/render/textplain.c
    trunk/netsurf/render/textplain.h
    trunk/netsurf/riscos/image.c
    trunk/netsurf/riscos/image.h
    trunk/netsurf/riscos/plugin.c
    trunk/netsurf/riscos/plugin.h

Modified: trunk/netsurf/content/content.c
URL: http://source.netsurf-browser.org/trunk/netsurf/content/content.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/content/content.c (original)
+++ trunk/netsurf/content/content.c Sun Sep 28 17:37:13 2008
@@ -256,11 +256,11 @@
 	bool (*redraw)(struct content *c, int x, int y,
 			int width, int height,
 			int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-			float scale, unsigned long background_colour);
+			float scale, colour background_colour);
 	bool (*redraw_tiled)(struct content *c, int x, int y,
 			int width, int height,
 			int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-			float scale, unsigned long background_colour,
+			float scale, colour background_colour,
 			bool repeat_x, bool repeat_y);
 	void (*open)(struct content *c, struct browser_window *bw,
 			struct content *page, unsigned int index,
@@ -1000,7 +1000,7 @@
 bool content_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	assert(c != 0);
 //	LOG(("%p %s", c, c->url));
@@ -1025,7 +1025,7 @@
 bool content_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	int x0, y0, x1, y1;

Modified: trunk/netsurf/content/content.h
URL: http://source.netsurf-browser.org/trunk/netsurf/content/content.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/content/content.h (original)
+++ trunk/netsurf/content/content.h Sun Sep 28 17:37:13 2008
@@ -299,11 +299,11 @@
 bool content_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool content_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y);
 bool content_add_user(struct content *c,
 		void (*callback)(content_msg msg, struct content *c,

Modified: trunk/netsurf/css/css.c
URL: http://source.netsurf-browser.org/trunk/netsurf/css/css.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/css/css.c (original)
+++ trunk/netsurf/css/css.c Sun Sep 28 17:37:13 2008
@@ -1589,7 +1589,7 @@
 		else if (style->z == CSS_COLOR_NONE)			\
 			fprintf(stream, s ": none; ");			\
 		else							\
-			fprintf(stream, s ": #%.6lx; ", style->z);	\
+			fprintf(stream, s ": #%.6x; ", style->z);	\
 	}
 
 #define DUMP_KEYWORD(z, s, n) \
@@ -1748,7 +1748,7 @@
 			else if (style->border[i].color == CSS_COLOR_NOT_SET)
 				;
 			else
-				fprintf(stream, " #%.6lx",
+				fprintf(stream, " #%.6x",
 						style->border[i].color);
 			fprintf(stream, "; ");
 		}
@@ -2137,7 +2137,7 @@
 			else if (style->outline.color.value == CSS_COLOR_NOT_SET)
 				fprintf(stream, " .");
 			else
-				fprintf(stream, " #%.6lx", style->outline.color.value);
+				fprintf(stream, " #%.6x", style->outline.color.value);
 			break;
 		case CSS_OUTLINE_COLOR_NOT_SET:
 			break;

Modified: trunk/netsurf/image/bmp.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/bmp.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/bmp.c (original)
+++ trunk/netsurf/image/bmp.c Sun Sep 28 17:37:13 2008
@@ -114,7 +114,7 @@
 bool nsbmp_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 
 	if (!c->data.bmp.bmp->decoded)
@@ -129,7 +129,7 @@
 bool nsbmp_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 

Modified: trunk/netsurf/image/bmp.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/bmp.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/bmp.h (original)
+++ trunk/netsurf/image/bmp.h Sun Sep 28 17:37:13 2008
@@ -46,11 +46,11 @@
 bool nsbmp_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool nsbmp_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y);
 void *nsbmp_bitmap_create(int width, int height, unsigned int bmp_state);
 

Modified: trunk/netsurf/image/gif.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/gif.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/gif.c (original)
+++ trunk/netsurf/image/gif.c Sun Sep 28 17:37:13 2008
@@ -154,7 +154,7 @@
 bool nsgif_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	if (c->data.gif.current_frame != c->data.gif.gif->decoded_frame)
 		if (nsgif_get_frame(c) != GIF_OK)
@@ -168,7 +168,7 @@
 bool nsgif_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	if (c->data.gif.current_frame != c->data.gif.gif->decoded_frame)

Modified: trunk/netsurf/image/gif.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/gif.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/gif.h (original)
+++ trunk/netsurf/image/gif.h Sun Sep 28 17:37:13 2008
@@ -43,11 +43,11 @@
 bool nsgif_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool nsgif_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y);
 void *nsgif_bitmap_create(int width, int height);
 

Modified: trunk/netsurf/image/ico.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/ico.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/ico.c (original)
+++ trunk/netsurf/image/ico.c Sun Sep 28 17:37:13 2008
@@ -101,7 +101,7 @@
 bool nsico_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	struct bmp_image *bmp = ico_find(c->data.ico.ico, width, height);
 	if (!bmp->decoded)
@@ -116,7 +116,7 @@
 bool nsico_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	struct bmp_image *bmp = ico_find(c->data.ico.ico, width, height);

Modified: trunk/netsurf/image/ico.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/ico.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/ico.h (original)
+++ trunk/netsurf/image/ico.h Sun Sep 28 17:37:13 2008
@@ -41,11 +41,11 @@
 bool nsico_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool nsico_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y);
 
 #endif /* WITH_BMP */

Modified: trunk/netsurf/image/jpeg.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/jpeg.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/jpeg.c (original)
+++ trunk/netsurf/image/jpeg.c Sun Sep 28 17:37:13 2008
@@ -236,7 +236,7 @@
 bool nsjpeg_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	return plot.bitmap(x, y, width, height,
 			c->bitmap, background_colour, c);
@@ -250,7 +250,7 @@
 bool nsjpeg_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	return plot.bitmap_tile(x, y, width, height,

Modified: trunk/netsurf/image/jpeg.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/jpeg.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/jpeg.h (original)
+++ trunk/netsurf/image/jpeg.h Sun Sep 28 17:37:13 2008
@@ -40,11 +40,11 @@
 bool nsjpeg_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool nsjpeg_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y);
 
 #endif /* WITH_JPEG */

Modified: trunk/netsurf/image/mng.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/mng.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/mng.c (original)
+++ trunk/netsurf/image/mng.c Sun Sep 28 17:37:13 2008
@@ -495,7 +495,7 @@
 bool nsmng_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	bool ret;
 
@@ -522,7 +522,7 @@
 bool nsmng_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	bool ret;

Modified: trunk/netsurf/image/mng.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/mng.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/mng.h (original)
+++ trunk/netsurf/image/mng.h Sun Sep 28 17:37:13 2008
@@ -48,11 +48,11 @@
 bool nsmng_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool nsmng_redraw_tiled(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y);
 
 #endif /* WITH_MNG */

Modified: trunk/netsurf/image/png.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/png.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/png.c (original)
+++ trunk/netsurf/image/png.c Sun Sep 28 17:37:13 2008
@@ -266,7 +266,7 @@
 bool nspng_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	if (c->bitmap != NULL) {
 		return plot.bitmap(x, y, width, height, c->bitmap, 
@@ -278,7 +278,7 @@
 
 bool nspng_redraw_tiled(struct content *c, int x, int y, int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	if (c->bitmap != NULL) {

Modified: trunk/netsurf/image/png.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/png.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/png.h (original)
+++ trunk/netsurf/image/png.h Sun Sep 28 17:37:13 2008
@@ -46,10 +46,10 @@
 bool nspng_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 bool nspng_redraw_tiled(struct content *c, int x, int y, int width, int height,
                         int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-                        float scale, unsigned long background_colour,
+                        float scale, colour background_colour,
                         bool repeat_x, bool repeat_y);
 #endif
 

Modified: trunk/netsurf/image/rsvg.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/rsvg.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/rsvg.c (original)
+++ trunk/netsurf/image/rsvg.c Sun Sep 28 17:37:13 2008
@@ -180,7 +180,7 @@
 
 bool rsvg_redraw(struct content *c, int x, int y, int width, int height,
 			int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-			float scale, unsigned long background_colour)
+			float scale, colour background_colour)
 {
 	plot.bitmap(x, y, width, height, c->bitmap, background_colour, c);
 	return true;
@@ -188,7 +188,7 @@
 
 bool rsvg_redraw_tiled(struct content *c, int x, int y, int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour,
+		float scale, colour background_colour,
 		bool repeat_x, bool repeat_y)
 {
 	return true;

Modified: trunk/netsurf/image/rsvg.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/rsvg.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/rsvg.h (original)
+++ trunk/netsurf/image/rsvg.h Sun Sep 28 17:37:13 2008
@@ -47,11 +47,11 @@
 bool rsvg_redraw(struct content *c, int x, int y,
                 int width, int height,
                 int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-                float scale, unsigned long background_colour);
+                float scale, colour background_colour);
 bool rsvg_redraw_tiled(struct content *c, int x, int y,
                 int width, int height,
                 int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-                float scale, unsigned long background_colour,
+                float scale, colour background_colour,
                 bool repeat_x, bool repeat_y);
 
 #endif /* WITH_RSVG */

Modified: trunk/netsurf/image/svg.c
URL: http://source.netsurf-browser.org/trunk/netsurf/image/svg.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/svg.c (original)
+++ trunk/netsurf/image/svg.c Sun Sep 28 17:37:13 2008
@@ -88,7 +88,7 @@
 bool svg_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	float transform[6];
 	struct svgtiny_diagram *diagram = c->data.svg.diagram;

Modified: trunk/netsurf/image/svg.h
URL: http://source.netsurf-browser.org/trunk/netsurf/image/svg.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/image/svg.h (original)
+++ trunk/netsurf/image/svg.h Sun Sep 28 17:37:13 2008
@@ -38,6 +38,6 @@
 bool svg_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 
 #endif

Modified: trunk/netsurf/render/html.h
URL: http://source.netsurf-browser.org/trunk/netsurf/render/html.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/render/html.h (original)
+++ trunk/netsurf/render/html.h Sun Sep 28 17:37:13 2008
@@ -189,7 +189,7 @@
 bool html_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 
 
 /* redraw a short text string, complete with highlighting

Modified: trunk/netsurf/render/html_redraw.c
URL: http://source.netsurf-browser.org/trunk/netsurf/render/html_redraw.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/render/html_redraw.c (original)
+++ trunk/netsurf/render/html_redraw.c Sun Sep 28 17:37:13 2008
@@ -113,7 +113,7 @@
 bool html_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	struct box *box;
 	bool result, want_knockout;

Modified: trunk/netsurf/render/textplain.c
URL: http://source.netsurf-browser.org/trunk/netsurf/render/textplain.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/render/textplain.c (original)
+++ trunk/netsurf/render/textplain.c Sun Sep 28 17:37:13 2008
@@ -326,7 +326,7 @@
 bool textplain_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	struct browser_window *bw = current_redraw_browser;
 	char *utf8_data = c->data.textplain.utf8_data;

Modified: trunk/netsurf/render/textplain.h
URL: http://source.netsurf-browser.org/trunk/netsurf/render/textplain.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/render/textplain.h (original)
+++ trunk/netsurf/render/textplain.h Sun Sep 28 17:37:13 2008
@@ -54,7 +54,7 @@
 bool textplain_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 
 /* access to lines for text selection and searching */
 #define textplain_line_count(c) ((c)->data.textplain.physical_line_count)

Modified: trunk/netsurf/riscos/image.c
URL: http://source.netsurf-browser.org/trunk/netsurf/riscos/image.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/riscos/image.c (original)
+++ trunk/netsurf/riscos/image.c Sun Sep 28 17:37:13 2008
@@ -30,7 +30,7 @@
 
 static bool image_redraw_tinct(osspriteop_id header, int x, int y,
 		int req_width, int req_height, int width, int height,
-		unsigned long background_colour, bool repeatx, bool repeaty,
+		colour background_colour, bool repeatx, bool repeaty,
 		bool alpha, unsigned int tinct_options);
 static bool image_redraw_os(osspriteop_id header, int x, int y,
 		int req_width, int req_height, int width, int height);
@@ -54,7 +54,7 @@
  */
 bool image_redraw(osspriteop_area *area, int x, int y, int req_width,
 		int req_height, int width, int height,
-		unsigned long background_colour,
+		colour background_colour,
 		bool repeatx, bool repeaty, bool background, image_type type)
 {
 	unsigned int tinct_options;
@@ -115,7 +115,7 @@
  */
 bool image_redraw_tinct(osspriteop_id header, int x, int y,
 		int req_width, int req_height, int width, int height,
-		unsigned long background_colour, bool repeatx, bool repeaty,
+		colour background_colour, bool repeatx, bool repeaty,
 		bool alpha, unsigned int tinct_options)
 {
 	_kernel_oserror *error;

Modified: trunk/netsurf/riscos/image.h
URL: http://source.netsurf-browser.org/trunk/netsurf/riscos/image.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/riscos/image.h (original)
+++ trunk/netsurf/riscos/image.h Sun Sep 28 17:37:13 2008
@@ -20,6 +20,7 @@
 #define _NETSURF_RISCOS_IMAGE_H_
 
 #include <stdbool.h>
+#include "css/css.h"
 #include "oslib/osspriteop.h"
 
 struct osspriteop_area;
@@ -32,7 +33,7 @@
 
 bool image_redraw(osspriteop_area *area, int x, int y, int req_width,
 		int req_height, int width, int height,
-		unsigned long background_colour,
+		colour background_colour,
 		bool repeatx, bool repeaty, bool background, image_type type);
 
 #endif

Modified: trunk/netsurf/riscos/plugin.c
URL: http://source.netsurf-browser.org/trunk/netsurf/riscos/plugin.c?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/riscos/plugin.c (original)
+++ trunk/netsurf/riscos/plugin.c Sun Sep 28 17:37:13 2008
@@ -250,7 +250,7 @@
 bool plugin_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour)
+		float scale, colour background_colour)
 {
 	/* do nothing */
 	LOG(("plugin_redraw"));

Modified: trunk/netsurf/riscos/plugin.h
URL: http://source.netsurf-browser.org/trunk/netsurf/riscos/plugin.h?rev=5459&r1=5458&r2=5459&view=diff
==============================================================================
--- trunk/netsurf/riscos/plugin.h (original)
+++ trunk/netsurf/riscos/plugin.h Sun Sep 28 17:37:13 2008
@@ -59,7 +59,7 @@
 bool plugin_redraw(struct content *c, int x, int y,
 		int width, int height,
 		int clip_x0, int clip_y0, int clip_x1, int clip_y1,
-		float scale, unsigned long background_colour);
+		float scale, colour background_colour);
 void plugin_open(struct content *c, struct browser_window *bw,
 		struct content *page, unsigned int index, struct box *box,
 		struct object_params *params);




More information about the netsurf-commits mailing list