commit de anar a dormir
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user