TETRIS: Use FontConfiguration
This commit is contained in:
@@ -34,11 +34,11 @@ public:
|
||||
}
|
||||
virtual std::shared_ptr< RenderObject > copySelf() override {
|
||||
auto ret = std::make_shared< TetrisBlock >( *this );
|
||||
copyTo(ret);
|
||||
copyTo( ret );
|
||||
return ret;
|
||||
}
|
||||
virtual void copyTo(std::shared_ptr<RenderObject> other) override {
|
||||
RectangleRender::copyTo(other);
|
||||
virtual void copyTo( std::shared_ptr< RenderObject > other ) override {
|
||||
RectangleRender::copyTo( other );
|
||||
}
|
||||
std::shared_ptr< TetrisBlock > copyInScene() {
|
||||
auto ret = std::shared_ptr< TetrisBlock >( new TetrisBlock( *this ) );
|
||||
@@ -56,13 +56,13 @@ public:
|
||||
}
|
||||
virtual void specialAction( int code ) override {
|
||||
switch ( code ) {
|
||||
case PIECE_ACTION_UPDATE_COLOR: {
|
||||
case PIECE_ACTION_UPDATE_COLOR:
|
||||
setColors();
|
||||
case PIECE_ACTION_UPDATE_BLOCK:
|
||||
if ( g_show_3d )
|
||||
setTexture( "block.png" );
|
||||
else
|
||||
unsetTexture();
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user