From ba1e2a2dc5ef298e3f895937a7352c5a93392c38 Mon Sep 17 00:00:00 2001 From: zvon Date: Sat, 30 Jan 2021 23:12:30 +0100 Subject: [PATCH] TETRIS: Fix score not updating --- tetris/tetris.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tetris/tetris.cpp b/tetris/tetris.cpp index 1fba611..7471f23 100644 --- a/tetris/tetris.cpp +++ b/tetris/tetris.cpp @@ -20,6 +20,7 @@ std::vector< std::shared_ptr< SDLPP::RenderObject > > line_coliders{}; void updateScore() { g_score_texture->changeText( std::to_string( g_score ) ); + g_score_texture->updateSizeAndPosition(); } void doInput() {