TETRIS: use updated TextRenderer
This commit is contained in:
+5
-1
@@ -20,7 +20,7 @@ std::vector< std::shared_ptr< SDLPP::RenderObject > > line_coliders{};
|
||||
|
||||
void updateScore( std::shared_ptr< SDLPP::Font > font ) {
|
||||
g_score_texture->setText( *font, std::to_string( g_score ), colors["text"],
|
||||
colors["text_out"], 5 );
|
||||
colors["text_out"], 0.1 );
|
||||
}
|
||||
|
||||
void doInput() {
|
||||
@@ -138,6 +138,10 @@ int main() {
|
||||
updateColors();
|
||||
g_update_colors = false;
|
||||
}
|
||||
if ( g_update_size ) {
|
||||
updateSize();
|
||||
g_update_size = false;
|
||||
}
|
||||
|
||||
renderer->clearRenderer();
|
||||
for ( auto &x : g_active_scenes ) {
|
||||
|
||||
Reference in New Issue
Block a user