SDLPP TextRenderer: actually copy in copySelf
This commit is contained in:
@@ -58,9 +58,13 @@ void TextRenderer::updateSizeAndPosition() {
|
||||
updateDstRect();
|
||||
}
|
||||
std::shared_ptr< RenderObject > TextRenderer::copySelf() {
|
||||
// TODO ACTUALLY copy, don't just copy pointers to textures and whatnot,
|
||||
// create new textures!!!
|
||||
return std::make_shared< TextRenderer >( *this );
|
||||
auto ret = std::make_shared< TextRenderer >( *this );
|
||||
copyTo(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void TextRenderer::copyTo(std::shared_ptr<RenderObject> other) {
|
||||
RectangleRender::copyTo(other);
|
||||
}
|
||||
|
||||
void TextRenderer::updateDstRect() {
|
||||
|
||||
Reference in New Issue
Block a user