TETRIS: Use FontConfiguration

This commit is contained in:
2021-01-30 21:35:25 +01:00
parent 73f67a3f47
commit fe675369ea
9 changed files with 73 additions and 69 deletions
+5 -5
View File
@@ -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;
}