commit de anar a dormir

This commit is contained in:
2024-10-09 23:01:44 +02:00
parent f2fa216b0d
commit 3fa5b227ae
17 changed files with 59 additions and 74 deletions

View File

@@ -95,8 +95,8 @@ Text::Text(std::string bitmapFile, std::string textFile, SDL_Renderer *renderer)
}
// Crea los objetos
texture = std::make_unique<Texture>(renderer, bitmapFile);
sprite = std::make_unique<Sprite>((SDL_Rect){0, 0, boxWidth, boxHeight}, texture.get());
texture = std::make_shared<Texture>(renderer, bitmapFile);
sprite = std::make_unique<Sprite>((SDL_Rect){0, 0, boxWidth, boxHeight}, texture);
// Inicializa variables
fixedWidth = false;