'unsigned long' -> 'colour' where it made sense.
svn path=/trunk/netsurf/; revision=5459
This commit is contained in:
parent
f092676012
commit
2d1481fafc
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue