summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 23:34:51 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 23:34:51 +0100
commit5bb5e2667df7459c288c3484d3539376a74a7c68 (patch)
tree45f10d2608677c890ebcb6b78804de1d423513c9 /amiga/plotters.c
parent3ea6ca89a0daf4a20ddf9962cc787ed5001f5ab6 (diff)
downloadnetsurf-5bb5e2667df7459c288c3484d3539376a74a7c68.tar.gz
netsurf-5bb5e2667df7459c288c3484d3539376a74a7c68.tar.bz2
Change the scope of some variables picked up by cppcheck, minor reformatting
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 0893c552c..de9075552 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -473,8 +473,6 @@ bool ami_polygon(const int *p, unsigned int n, const plot_style_t *style)
LOG(("[ami_plotter] Entered ami_polygon()"));
#endif
- int k;
-
if((nsoption_int(cairo_renderer) < 1) || (palette_mapped == true))
{
ULONG cx,cy;
@@ -484,7 +482,7 @@ bool ami_polygon(const int *p, unsigned int n, const plot_style_t *style)
if(AreaMove(glob->rp,p[0],p[1]) == -1)
LOG(("AreaMove: vector list full"));
- for(k=1;k<n;k++)
+ for(int k = 1; k < n; k++)
{
if(AreaDraw(glob->rp,p[k*2],p[(k*2)+1]) == -1)
LOG(("AreaDraw: vector list full"));
@@ -501,7 +499,7 @@ bool ami_polygon(const int *p, unsigned int n, const plot_style_t *style)
cairo_set_line_width(glob->cr, 0);
cairo_move_to(glob->cr, p[0], p[1]);
- for (k = 1; k != n; k++) {
+ for (int k = 1; k != n; k++) {
cairo_line_to(glob->cr, p[k * 2], p[k * 2 + 1]);
}
cairo_fill(glob->cr);