Arreglats els constructors de Text

This commit is contained in:
2024-10-08 18:07:44 +02:00
parent 06a4f439c1
commit 9ce0f16d33

View File

@@ -119,7 +119,7 @@ Text::Text(std::string textFile, Texture *texture)
}
// Crea los objetos
sprite = std::make_unique<Sprite>((SDL_Rect){0, 0, boxWidth, boxHeight});
sprite = std::make_unique<Sprite>((SDL_Rect){0, 0, boxWidth, boxHeight}, texture);
// Inicializa variables
fixedWidth = false;
@@ -139,7 +139,7 @@ Text::Text(textFile_t *textFile, Texture *texture)
}
// Crea los objetos
sprite = std::make_unique<Sprite>((SDL_Rect){0, 0, boxWidth, boxHeight});
sprite = std::make_unique<Sprite>((SDL_Rect){0, 0, boxWidth, boxHeight}, texture);
// Inicializa variables
fixedWidth = false;