summaryrefslogtreecommitdiffstats
path: root/examples/life/life.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/life/life.cpp')
-rw-r--r--examples/life/life.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/life/life.cpp b/examples/life/life.cpp
index ff02ff851..474de310a 100644
--- a/examples/life/life.cpp
+++ b/examples/life/life.cpp
@@ -41,14 +41,14 @@ void LifeWidget::clear()
for ( int t = 0; t < 2; t++ )
for ( int i = 0; i < MAXSIZE + 2; i++ )
for ( int j = 0; j < MAXSIZE + 2; j++ )
- cells[t][i][j] = FALSE;
+ cells[t][i][j] = false;
repaint();
}
// We assume that the size will never be beyond the maximum size set
-// this is not in general TRUE, but in practice it's good enough for
+// this is not in general true, but in practice it's good enough for
// this program
void LifeWidget::resizeEvent( TQResizeEvent * e )
@@ -62,8 +62,8 @@ void LifeWidget::setPoint( int i, int j )
{
if ( i < 1 || i > maxi || j < 1 || j > maxi )
return;
- cells[current][i][j] = TRUE;
- repaint( index2pos(i), index2pos(j), SCALE, SCALE, FALSE );
+ cells[current][i][j] = true;
+ repaint( index2pos(i), index2pos(j), SCALE, SCALE, false );
}
@@ -106,7 +106,7 @@ void LifeWidget::nextGeneration()
}
}
current = !current;
- repaint( FALSE ); // repaint without erase
+ repaint( false ); // repaint without erase
}