From 94103b8c962a8782e8a4187ecedf33ec51178833 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sun, 8 Aug 2004 11:45:28 +0000 Subject: [project @ 2004-08-08 11:45:28 by joty] Minor change : update comment + explicit cast. svn path=/import/netsurf/; revision=1194 --- riscos/save_draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/riscos/save_draw.c b/riscos/save_draw.c index a9c49f82a..62e7b7497 100644 --- a/riscos/save_draw.c +++ b/riscos/save_draw.c @@ -400,7 +400,7 @@ static bool drawbuf_group_begin(const char *name) dro->type = drawfile_TYPE_GROUP; dro->size = 8 + sizeof(drawfile_group_base); /* will be correctly filled in during drawbuf_group_end() */ - dgb = &dro->data.group; + dgb = (drawfile_group_base *)&dro->data.group; dgb->bbox.x0 = dgb->bbox.y0 = dgb->bbox.x1 = dgb->bbox.y1 = 0; /* will be filled in during drawbuf_group_end() */ nameLen = strlen(name); if (nameLen >= sizeof(dgb->name)) @@ -772,8 +772,9 @@ static bool add_graphic(struct content *content, struct box *box, /** * Add a filled, borderless rectangle to the diagram * - * \param x,y topleft coord of the rectangle. - * \param cbc rectangle colour Draw format + * \param x,y top-left coord of the rectangle. + * \param width,height width,height of the rectangle + * \param col rectangle colour Draw format * \return true on success, false on error (error got reported) */ static bool add_rect(int x, int y, int width, int height, os_colour col) -- cgit v1.2.3