|
|
@ -147,13 +147,13 @@ KPacManAnimation::animate( TQPainter * painter,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
p.drawPie( _pacManRect,
|
|
|
|
p.drawPie( _pacManRect,
|
|
|
|
_mouth * 16, // arc (1/16 degrees)
|
|
|
|
_mouth * 16, // arc (1/16 degrees)
|
|
|
|
( 360 - 2 * _mouth ) * 16 ); // arc lenght (1/16 degrees)
|
|
|
|
( 360 - 2 * _mouth ) * 16 ); // arc length (1/16 degrees)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
p.drawPie( _pacManRect,
|
|
|
|
p.drawPie( _pacManRect,
|
|
|
|
( 180 + _mouth ) * 16, // arc (1/16 degrees)
|
|
|
|
( 180 + _mouth ) * 16, // arc (1/16 degrees)
|
|
|
|
( 360 - 2 * _mouth ) * 16 ); // arc lenght (1/16 degrees)
|
|
|
|
( 360 - 2 * _mouth ) * 16 ); // arc length (1/16 degrees)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_pacManRect = TQRect( rect.x() + _pos, // x
|
|
|
|
_pacManRect = TQRect( rect.x() + _pos, // x
|
|
|
|