TETRIS: make enough room for 'Quit Game' text

This commit is contained in:
zv0n 2021-01-31 16:02:08 +01:00
parent f92a94ef01
commit 3de364ce26

View File

@ -193,7 +193,7 @@ void addMenuSceneItems( SDLPP::Scene &scene,
g_menu_options.push_back( restart );
scene.addObject( restart );
auto quit =
std::make_shared< SDLPP::TextRenderer >( 0.4, 0.76, 0.2, 0.08, r );
std::make_shared< SDLPP::TextRenderer >( 0.35, 0.76, 0.3, 0.08, r );
quit->setText( "Quit Game", g_font_config );
quit->centerX();
quit->setId( MENU_ITEM_ID );
@ -222,7 +222,7 @@ void addGameOverSceneItems( SDLPP::Scene &scene,
g_game_over_options.push_back( restart );
scene.addObject( restart );
auto quit =
std::make_shared< SDLPP::TextRenderer >( 0.4, 0.7, 0.2, 0.1, r );
std::make_shared< SDLPP::TextRenderer >( 0.35, 0.7, 0.3, 0.1, r );
quit->setText( "Quit Game", g_font_config );
quit->centerX();
quit->setId( MENU_ITEM_ID );