Fix MSVC14 warning about a shadowed variable in the drawing sample
The warning is harmless but avoid it nevertheless.
This commit is contained in:
@@ -1253,14 +1253,14 @@ void MyCanvas::DrawSplines(wxDC& dc)
|
|||||||
const wxPoint center( R + 20, R + 20 );
|
const wxPoint center( R + 20, R + 20 );
|
||||||
const int angles[7] = { 0, 10, 33, 77, 13, 145, 90 };
|
const int angles[7] = { 0, 10, 33, 77, 13, 145, 90 };
|
||||||
const int radii[5] = { 100 , 59, 85, 33, 90 };
|
const int radii[5] = { 100 , 59, 85, 33, 90 };
|
||||||
const int n = 200;
|
const int numPoints = 200;
|
||||||
wxPoint pts[n];
|
wxPoint pts[numPoints];
|
||||||
|
|
||||||
// background spline calculation
|
// background spline calculation
|
||||||
unsigned int radius_pos = 0;
|
unsigned int radius_pos = 0;
|
||||||
unsigned int angle_pos = 0;
|
unsigned int angle_pos = 0;
|
||||||
int angle = 0;
|
int angle = 0;
|
||||||
for ( int i = 0; i < n; i++ )
|
for ( int i = 0; i < numPoints; i++ )
|
||||||
{
|
{
|
||||||
angle += angles[ angle_pos ];
|
angle += angles[ angle_pos ];
|
||||||
int r = R * radii[ radius_pos ] / 100;
|
int r = R * radii[ radius_pos ] / 100;
|
||||||
|
Reference in New Issue
Block a user