summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2004-08-08 11:45:28 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2004-08-08 11:45:28 +0000
commit94103b8c962a8782e8a4187ecedf33ec51178833 (patch)
tree11a93a96161d980d0959f5761c233989f1fe9c4e /riscos
parentf14d765ca78c8fb0a71cab681f8680d080e9817a (diff)
downloadnetsurf-94103b8c962a8782e8a4187ecedf33ec51178833.tar.gz
netsurf-94103b8c962a8782e8a4187ecedf33ec51178833.tar.bz2
[project @ 2004-08-08 11:45:28 by joty]
Minor change : update comment + explicit cast. svn path=/import/netsurf/; revision=1194
Diffstat (limited to 'riscos')
-rw-r--r--riscos/save_draw.c7
1 files 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)