Revert "Eliminados todos los std:: del código"

This reverts commit 4a2d27dc59.
This commit is contained in:
2023-09-16 16:44:15 +02:00
parent 4a2d27dc59
commit 0ea7eb0b9c
35 changed files with 504 additions and 539 deletions

View File

@@ -37,7 +37,7 @@ Credits::Credits(SDL_Renderer *renderer, Screen *screen, Resource *resource, Ass
{
if (options->console)
{
cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << endl;
std::cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << std::endl;
}
}
SDL_SetTextureBlendMode(textTexture, SDL_BLENDMODE_BLEND);
@@ -48,7 +48,7 @@ Credits::Credits(SDL_Renderer *renderer, Screen *screen, Resource *resource, Ass
{
if (options->console)
{
cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << endl;
std::cout << "Error: textTexture could not be created!\nSDL Error: " << SDL_GetError() << std::endl;
}
}
SDL_SetTextureBlendMode(coverTexture, SDL_BLENDMODE_BLEND);
@@ -126,7 +126,7 @@ void Credits::checkInput()
// Inicializa los textos
void Credits::iniTexts()
{
string keys = "";
std::string keys = "";
if (options->keys == ctrl_cursor)
{
keys = "CURSORS";
@@ -331,7 +331,7 @@ void Credits::render()
SDL_RenderCopy(renderer, textTexture, nullptr, nullptr);
// Dibuja la textura que cubre el texto
const int offset = min(counter / 8, 192 / 2);
const int offset = std::min(counter / 8, 192 / 2);
SDL_Rect srcRect = {0, 0, 256, 192 - (offset * 2)};
SDL_Rect dstRect = {0, offset * 2, 256, 192 - (offset * 2)};
SDL_RenderCopy(renderer, coverTexture, &srcRect, &dstRect);