Eliminados todos los std:: del código

This commit is contained in:
2023-09-16 12:44:40 +02:00
parent 71be364141
commit 4a2d27dc59
35 changed files with 539 additions and 504 deletions

View File

@@ -45,7 +45,7 @@ Ending::Ending(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset
{
if (options->console)
{
std::cout << "Error: canvasTexture could not be created!\nSDL Error: " << SDL_GetError() << std::endl;
cout << "Error: canvasTexture could not be created!\nSDL Error: " << SDL_GetError() << endl;
}
}
SDL_SetTextureBlendMode(coverTexture, SDL_BLENDMODE_BLEND);
@@ -140,7 +140,7 @@ void Ending::render()
// Dibuja la cortinilla de cambio de escena
renderCoverTexture();
// text->write(0, 0, std::to_string(counter));
// text->write(0, 0, to_string(counter));
// Vuelca el contenido del renderizador en pantalla
screen->blit();
@@ -201,7 +201,7 @@ void Ending::checkInput()
void Ending::iniTexts()
{
// Vector con los textos
std::vector<textAndPos_t> texts;
vector<textAndPos_t> texts;
// Escena #0
texts.push_back({"HE FINALLY MANAGED", 32});
@@ -307,7 +307,7 @@ void Ending::iniTexts()
void Ending::iniPics()
{
// Vector con las rutas y la posición
std::vector<textAndPos_t> pics;
vector<textAndPos_t> pics;
if (options->palette == p_zxspectrum)
{
@@ -605,7 +605,7 @@ void Ending::renderCoverTexture()
{
if (coverCounter > 0)
{ // Dibuja la textura que cubre el texto
const int offset = std::min(coverCounter, 100);
const int offset = min(coverCounter, 100);
SDL_Rect srcRect = {0, 200 - (coverCounter * 2), 256, offset * 2};
SDL_Rect dstRect = {0, 0, 256, offset * 2};
SDL_RenderCopy(renderer, coverTexture, &srcRect, &dstRect);