Commit e9991939 authored by ggeiger's avatar ggeiger
Browse files

changed "for (int i=0; ..)" scoping


git-svn-id: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk/Gem@162 49b2a0ca-c541-4d49-a7ef-d785e4371512
parent ab9d69dc
......@@ -240,8 +240,10 @@ void newWave :: typeMess(t_symbol *type)
void newWave :: getforce()
{
float d;
for ( int i=0; i<grid; i++)
for ( int j=0;j<grid; j++)
int i;
int j;
for (i=0; i<grid; i++)
for ( j=0;j<grid; j++)
{
force[i][j] =0.0;
}
......@@ -639,4 +641,4 @@ void newWave :: speedMessCallback(void *data, t_floatarg speed)
void newWave :: blendMessCallback(void *data, t_floatarg size)
{
GetMyClass(data)->m_blend=((int)size);
}
\ No newline at end of file
}
......@@ -53,7 +53,8 @@ pix_convolve :: pix_convolve(t_floatarg fRow, t_floatarg fCol)
m_imatrix = new signed short[m_rows * m_cols];
// zero out the matrix
for (int i = 0; i < m_cols * m_rows; i++) m_matrix[i] = 0.0;
int i;
for (i = 0; i < m_cols * m_rows; i++) m_matrix[i] = 0.0;
for (i = 0; i < m_cols * m_rows; i++) m_imatrix[i] = 0;
// insert a one for the default center value (identity matrix)
m_matrix[ ((m_cols / 2 + 1) * m_rows) + (m_rows / 2 + 1) ] = 1.0;
......@@ -248,7 +249,8 @@ void pix_convolve :: matrixMess(int argc, t_atom *argv)
return;
}
for (int i = 0; i < argc; i++) m_matrix[i] = atom_getfloat(&argv[i]);
int i;
for (i = 0; i < argc; i++) m_matrix[i] = atom_getfloat(&argv[i]);
for (i = 0; i < argc; i++) m_imatrix[i] = (int)(atom_getfloat(&argv[i])*255.);
setPixModified();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment