forked from jaildesigner-jailgames/jaildoctors_dilemma
Revert "Eliminados todos los std:: del código"
This reverts commit 4a2d27dc59.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user