Arreglats els constructors de Text
This commit is contained in:
1 parent
06a4f439c1
commit
9ce0f16d33
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user