diff --git a/sdlpp/sdlpp_textrenderer.cpp b/sdlpp/sdlpp_textrenderer.cpp index d5a0f3f..15dc58b 100644 --- a/sdlpp/sdlpp_textrenderer.cpp +++ b/sdlpp/sdlpp_textrenderer.cpp @@ -42,15 +42,12 @@ void TextRenderer::setTextColor( std::shared_ptr< Font > font, const std::string &outline_color, double outline_size ) { saveFontConfig( font, color, outline_color, outline_size ); - updateSizeAndPosition(); } void TextRenderer::setTextColor( std::shared_ptr< FontConfiguration > config ) { saveFontConfig( config ); - updateSizeAndPosition(); } void TextRenderer::changeText( const std::string &text ) { _text = text; - updateSizeAndPosition(); } void TextRenderer::setFlags( int flags ) { position_flags = flags; @@ -69,6 +66,7 @@ void TextRenderer::render() { col->render( *renderer, colider_color ); } } +// TODO move this to method updateTexture and call that function from this void TextRenderer::updateSizeAndPosition() { RectangleRender::updateSizeAndPosition();