Arreglats els constructors de Text
This commit is contained in:
@@ -119,7 +119,7 @@ Text::Text(std::string textFile, Texture *texture)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Crea los objetos
|
// 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
|
// Inicializa variables
|
||||||
fixedWidth = false;
|
fixedWidth = false;
|
||||||
@@ -139,7 +139,7 @@ Text::Text(textFile_t *textFile, Texture *texture)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Crea los objetos
|
// 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
|
// Inicializa variables
|
||||||
fixedWidth = false;
|
fixedWidth = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user