mirror of https://github.com/CGAL/cgal
Fix a warning
Fix the indentation to fix a warning:
```
/cgal/Polyhedron/demo/Polyhedron/texture.cpp:1071:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(j=0;j<height;j++)
^~~
/cgal/Polyhedron/demo/Polyhedron/texture.cpp:1080:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for(j=0;j<height;j++)
^~~
```
This commit is contained in:
parent
257171d76b
commit
a1cb728da8
|
|
@ -1076,17 +1076,17 @@ void Texture::GenerateLines(unsigned int width,
|
|||
m_pData[m_WidthByte32*j + i*3+2] = bb;
|
||||
}
|
||||
|
||||
// horizontal zebra
|
||||
for(j=0;j<height;j++)
|
||||
{
|
||||
if((j/size)%2 == 0)
|
||||
for(i=0;i<width;i++)
|
||||
{
|
||||
m_pData[m_WidthByte32*j + i*3] = r;
|
||||
m_pData[m_WidthByte32*j + i*3+1] = g;
|
||||
m_pData[m_WidthByte32*j + i*3+2] = b;
|
||||
}
|
||||
}
|
||||
// horizontal zebra
|
||||
for(j=0;j<height;j++)
|
||||
{
|
||||
if((j/size)%2 == 0)
|
||||
for(i=0;i<width;i++)
|
||||
{
|
||||
m_pData[m_WidthByte32*j + i*3] = r;
|
||||
m_pData[m_WidthByte32*j + i*3+1] = g;
|
||||
m_pData[m_WidthByte32*j + i*3+2] = b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue