diff options
Diffstat (limited to 'libksirtet/base/gtetris.cpp')
-rw-r--r-- | libksirtet/base/gtetris.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libksirtet/base/gtetris.cpp b/libksirtet/base/gtetris.cpp index 2141f9ef..6c2a66a9 100644 --- a/libksirtet/base/gtetris.cpp +++ b/libksirtet/base/gtetris.cpp @@ -166,7 +166,7 @@ bool GenericTetris::rotate(bool left) Piece tmp; tmp.copy(_currentPiece); - QPoint p(0, 0); + TQPoint p(0, 0); tmp.rotate(left, p); if ( canPosition(_currentPos, &tmp) ) { if (_graphic) p = toPoint(_currentPos); @@ -192,7 +192,7 @@ void GenericTetris::setBlock(const Coord &c, Block *b) Q_ASSERT( b && _matrix[c]==0 ); _matrix[c] = b; if (_graphic) { - QPoint p = toPoint(c); + TQPoint p = toPoint(c); b->sprite()->move(p.x(), p.y()); } } @@ -212,7 +212,7 @@ void GenericTetris::moveBlock(const Coord &src, const Coord &dest) } } -QPoint GenericTetris::toPoint(const Coord &c) const +TQPoint GenericTetris::toPoint(const Coord &c) const { return _main->toPoint(Coord(c.first, _matrix.height() - 1 - c.second)); } @@ -230,12 +230,12 @@ void GenericTetris::gluePiece() void GenericTetris::bumpCurrentPiece(int dec) { Q_ASSERT( _graphic && _currentPiece ); - _currentPiece->move(toPoint(_currentPos) + QPoint(0, dec)); + _currentPiece->move(toPoint(_currentPos) + TQPoint(0, dec)); } -void GenericTetris::partialMoveBlock(const Coord &c, const QPoint &dec) +void GenericTetris::partialMoveBlock(const Coord &c, const TQPoint &dec) { Q_ASSERT( _graphic && _matrix[c]!=0 ); - QPoint p = toPoint(c) + dec; + TQPoint p = toPoint(c) + dec; _matrix[c]->sprite()->move(p.x(), p.y()); } |