@@ -376,7 +376,7 @@ RendererAgg::draw_polygon(const Py::Tuple& args) {
376
376
double xs[Npoints];
377
377
double ys[Npoints];
378
378
Py::Tuple xy;
379
- for (size_t i=0 ; i<Npoints; ++i ) {
379
+ for (size_t i=0 ; i<Npoints; i++ ) {
380
380
xy = Py::Tuple (points[i]);
381
381
xs[i] = Py::Float (xy[0 ]);
382
382
ys[i] = Py::Float (xy[1 ]);
@@ -386,7 +386,7 @@ RendererAgg::draw_polygon(const Py::Tuple& args) {
386
386
387
387
388
388
agg::path_storage path;
389
- for (size_t j=0 ; j<Npoints; ++j ) {
389
+ for (size_t j=0 ; j<Npoints; j++ ) {
390
390
391
391
double x = xs[j];
392
392
double y = ys[j];
@@ -473,7 +473,7 @@ RendererAgg::draw_line_collection(const Py::Tuple& args) {
473
473
std::pair<double , double > xy;
474
474
Py::SeqBase<Py::Object> xyo;
475
475
Py::SeqBase<Py::Object> xys;
476
- for (size_t i=0 ; i<N; ++i ) {
476
+ for (size_t i=0 ; i<N; i++ ) {
477
477
if (usingOffsets) {
478
478
xyo = Py::SeqBase<Py::Object>(offsets[i%Noffsets]);
479
479
xo = Py::Float (xyo[0 ]);
@@ -645,7 +645,7 @@ RendererAgg::draw_poly_collection(const Py::Tuple& args) {
645
645
646
646
std::pair<double , double > xyo, xy;
647
647
Py::SeqBase<Py::Object> thisverts;
648
- for (size_t i=0 ; i<N; ++i ) {
648
+ for (size_t i=0 ; i<N; i++ ) {
649
649
650
650
thisverts = verts[i % Nverts];
651
651
@@ -671,7 +671,7 @@ RendererAgg::draw_poly_collection(const Py::Tuple& args) {
671
671
// dump the verts to double arrays so we can do more efficient
672
672
// look aheads and behinds when doing snapto pixels
673
673
double xs[Nverts], ys[Nverts];
674
- for (size_t j=0 ; j<Nverts; ++j ) {
674
+ for (size_t j=0 ; j<Nverts; j++ ) {
675
675
thisvert = thisverts[j];
676
676
double x = Py::Float (thisvert[0 ]);
677
677
double y = Py::Float (thisvert[1 ]);
@@ -694,7 +694,7 @@ RendererAgg::draw_poly_collection(const Py::Tuple& args) {
694
694
695
695
}
696
696
697
- for (size_t j=0 ; j<Nverts; ++j ) {
697
+ for (size_t j=0 ; j<Nverts; j++ ) {
698
698
699
699
double x = xs[j];
700
700
double y = ys[j];
@@ -824,14 +824,14 @@ RendererAgg::draw_regpoly_collection(const Py::Tuple& args) {
824
824
double xverts[Nverts];
825
825
double yverts[Nverts];
826
826
Py::SeqBase<Py::Object> xy;
827
- for (size_t i=0 ; i<Nverts; ++i ) {
827
+ for (size_t i=0 ; i<Nverts; i++ ) {
828
828
xy = Py::SeqBase<Py::Object>(verts[i]);
829
829
xverts[i] = Py::Float (xy[0 ]);
830
830
yverts[i] = Py::Float (xy[1 ]);
831
831
}
832
832
833
833
std::pair<double , double > offsetPair;
834
- for (size_t i=0 ; i<Noffsets; ++i ) {
834
+ for (size_t i=0 ; i<Noffsets; i++ ) {
835
835
Py::SeqBase<Py::Object> pos = Py::SeqBase<Py::Object>(offsets[i]);
836
836
double xo = Py::Float (pos[0 ]);
837
837
double yo = Py::Float (pos[1 ]);
@@ -849,7 +849,7 @@ RendererAgg::draw_regpoly_collection(const Py::Tuple& args) {
849
849
850
850
agg::path_storage path;
851
851
852
- for (size_t j=0 ; j<Nverts; ++j ) {
852
+ for (size_t j=0 ; j<Nverts; j++ ) {
853
853
thisx = scale*xverts[j] + offsetPair.first ;
854
854
thisy = scale*yverts[j] + offsetPair.second ;
855
855
thisy = height - thisy;
@@ -967,7 +967,7 @@ RendererAgg::draw_lines(const Py::Tuple& args) {
967
967
968
968
double lastx (-2.0 ), lasty (-2.0 );
969
969
970
- for (size_t i=0 ; i<Nx; ++i ) {
970
+ for (size_t i=0 ; i<Nx; i++ ) {
971
971
thisx = *(double *)(xa->data + i*xa->strides [0 ]);
972
972
thisy = *(double *)(ya->data + i*ya->strides [0 ]);
973
973
@@ -1176,7 +1176,7 @@ RendererAgg::draw_markers(const Py::Tuple& args) {
1176
1176
}
1177
1177
1178
1178
double thisx, thisy;
1179
- for (size_t i=0 ; i<Nx; ++i ) {
1179
+ for (size_t i=0 ; i<Nx; i++ ) {
1180
1180
thisx = *(double *)(xa->data + i*xa->strides [0 ]);
1181
1181
thisy = *(double *)(ya->data + i*ya->strides [0 ]);
1182
1182
@@ -1254,7 +1254,7 @@ RendererAgg::draw_path(const Py::Tuple& args) {
1254
1254
double x, y;
1255
1255
unsigned cmd;
1256
1256
bool curvy = false ;
1257
- for (size_t i=0 ; i<Nx; ++i ) {
1257
+ for (size_t i=0 ; i<Nx; i++ ) {
1258
1258
cmd = path->vertex (i, &x, &y);
1259
1259
if (cmd==agg::path_cmd_curve3 || cmd==agg::path_cmd_curve4) curvy=true ;
1260
1260
if (needNonlinear)
@@ -1319,8 +1319,8 @@ RendererAgg::draw_text(const Py::Tuple& args) {
1319
1319
}
1320
1320
1321
1321
1322
- for (size_t i=0 ; i<font->image .width ; ++i ) {
1323
- for (size_t j=0 ; j<font->image .height ; ++j ) {
1322
+ for (size_t i=0 ; i<font->image .width ; i++ ) {
1323
+ for (size_t j=0 ; j<font->image .height ; j++ ) {
1324
1324
thisx = i+x+font->image .offsetx ;
1325
1325
thisy = j+y+font->image .offsety ;
1326
1326
if (thisx<l || thisx>=r) continue ;
@@ -1424,7 +1424,7 @@ RendererAgg::write_rgba(const Py::Tuple& args) {
1424
1424
std::string fname = Py::String ( args[0 ]);
1425
1425
1426
1426
std::ofstream of2 ( fname.c_str (), std::ios::binary|std::ios::out);
1427
- for (size_t i=0 ; i<NUMBYTES; ++i ) {
1427
+ for (size_t i=0 ; i<NUMBYTES; i++ ) {
1428
1428
of2.write ((char *)&(pixBuffer[i]), sizeof (char ));
1429
1429
}
1430
1430
return Py::Object ();
0 commit comments