Playing around with buttons
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user