Playing around with buttons

This commit is contained in:
2022-06-22 21:42:57 +02:00
parent 2402567330
commit 94d24e37fa
6 changed files with 166 additions and 27 deletions
+4 -3
View File
@@ -148,12 +148,13 @@ void TextRenderer::saveFontConfig( std::shared_ptr< Font > font,
const std::string &color,
const std::string &outline_color,
double outline_size ) {
_config = std::make_shared< FontConfiguration >( font, color, outline_color,
auto config = std::make_shared< FontConfiguration >( font, color, outline_color,
outline_size );
text_change = true;
saveFontConfig(config);
}
void TextRenderer::saveFontConfig(
std::shared_ptr< FontConfiguration > config ) {
_config = config;
_config = std::move(config);
text_change = true;
}
} // namespace SDLPP