'unsigned long' -> 'colour' where it made sense.

svn path=/trunk/netsurf/; revision=5459
This commit is contained in:
John Tytgat 2008-09-28 22:37:13 +00:00
parent f092676012
commit 2d1481fafc
27 changed files with 50 additions and 49 deletions

View File

@ -256,11 +256,11 @@ struct handler_entry {
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 @@ void content_quit(void)
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(struct content *c, int x, int y,
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;

View File

@ -299,11 +299,11 @@ void content_quit(void);
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,

View File

@ -1589,7 +1589,7 @@ void css_dump_style(FILE *stream, const struct css_style * const style)
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 @@ void css_dump_style(FILE *stream, const struct css_style * const style)
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 @@ void css_dump_style(FILE *stream, const struct css_style * const style)
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;

View File

@ -114,7 +114,7 @@ bool nsbmp_convert(struct content *c, int iwidth, int iheight)
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(struct content *c, int x, int y,
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)
{

View File

@ -46,11 +46,11 @@ void nsbmp_destroy(struct content *c);
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);

View File

@ -154,7 +154,7 @@ void nsgif_invalidate(void *bitmap, void *private_word)
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(struct content *c, int x, int y,
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)

View File

@ -43,11 +43,11 @@ void nsgif_destroy(struct content *c);
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);

View File

@ -101,7 +101,7 @@ bool nsico_convert(struct content *c, int iwidth, int iheight)
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(struct content *c, int x, int y,
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);

View File

@ -41,11 +41,11 @@ void nsico_destroy(struct content *c);
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 */

View File

@ -236,7 +236,7 @@ void nsjpeg_term_source(j_decompress_ptr cinfo)
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(struct content *c, int x, int y,
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,

View File

@ -40,11 +40,11 @@ void nsjpeg_destroy(struct content *c);
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 */

View File

@ -495,7 +495,7 @@ void nsmng_destroy(struct content *c) {
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(struct content *c, int x, int y,
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;

View File

@ -48,11 +48,11 @@ void nsmng_destroy(struct content *c);
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 */

View File

@ -266,7 +266,7 @@ void nspng_destroy(struct content *c)
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(struct content *c, int x, int y,
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) {

View File

@ -46,10 +46,10 @@ void nspng_destroy(struct content *c);
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

View File

@ -180,7 +180,7 @@ bool rsvg_convert(struct content *c, int iwidth, int iheight)
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(struct content *c, int x, int y, int width, int height,
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;

View File

@ -47,11 +47,11 @@ void rsvg_destroy(struct content *c);
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 */

View File

@ -88,7 +88,7 @@ bool svg_convert(struct content *c, int w, int h)
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;

View File

@ -38,6 +38,6 @@ void svg_destroy(struct content *c);
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

View File

@ -189,7 +189,7 @@ void html_close(struct content *c);
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

View File

@ -113,7 +113,7 @@ bool html_redraw_debug = false;
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;

View File

@ -326,7 +326,7 @@ void textplain_destroy(struct content *c)
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;

View File

@ -54,7 +54,7 @@ void textplain_destroy(struct content *c);
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)

View File

@ -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 @@ static bool image_redraw_os(osspriteop_id header, int x, int y,
*/
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(osspriteop_area *area, int x, int y, int req_width,
*/
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;

View File

@ -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 @@ typedef enum {
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

View File

@ -250,7 +250,7 @@ void plugin_destroy(struct content *c)
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"));

View File

@ -59,7 +59,7 @@ void plugin_destroy(struct content *c);
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);