summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-11-29 22:53:58 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-11-29 22:53:58 +0000
commit53fe38504f087ec278177e562f57ac2e744927ac (patch)
tree9185ad0ecb2a306d7de17bbd62465d9b505feb10 /image
parent3eb0ff790f7f8bc6e99df8c5840575c60942bbd6 (diff)
downloadnetsurf-53fe38504f087ec278177e562f57ac2e744927ac.tar.gz
netsurf-53fe38504f087ec278177e562f57ac2e744927ac.tar.bz2
C89
svn path=/trunk/netsurf/; revision=5837
Diffstat (limited to 'image')
-rw-r--r--image/svg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/image/svg.c b/image/svg.c
index a1d0abce5..0c2097341 100644
--- a/image/svg.c
+++ b/image/svg.c
@@ -94,6 +94,7 @@ bool svg_redraw(struct content *c, int x, int y,
struct svgtiny_diagram *diagram = c->data.svg.diagram;
bool ok;
int px, py;
+ unsigned int i;
assert(diagram);
@@ -106,7 +107,7 @@ bool svg_redraw(struct content *c, int x, int y,
#define BGR(c) ((c) == svgtiny_TRANSPARENT ? TRANSPARENT : ((svgtiny_RED((c))) | (svgtiny_GREEN((c)) << 8) | (svgtiny_BLUE((c)) << 16)))
- for (unsigned int i = 0; i != diagram->shape_count; i++) {
+ for (i = 0; i != diagram->shape_count; i++) {
if (diagram->shape[i].path) {
ok = plot.path(diagram->shape[i].path,
diagram->shape[i].path_length,