Cambiados NULL por nullptr
This commit is contained in:
@@ -32,8 +32,10 @@ Title::Title(SDL_Window *window, SDL_Renderer *renderer, Screen *screen, Input *
|
||||
|
||||
// Crea la textura para el mosaico de fondo
|
||||
mBackground = SDL_CreateTexture(mRenderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, SCREEN_WIDTH * 2, SCREEN_HEIGHT * 2);
|
||||
if (mBackground == NULL)
|
||||
if (mBackground == nullptr)
|
||||
{
|
||||
printf("TitleSurface could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
// Destructor
|
||||
@@ -512,7 +514,7 @@ void Title::updateMenuLabels()
|
||||
// Aplica las opciones de menu seleccionadas
|
||||
void Title::applyOptions()
|
||||
{
|
||||
mScreen->setVideoMode(mOptions->fullScreenMode);
|
||||
mScreen->setVideoMode(mOptions->fullScreenMode);
|
||||
|
||||
mLang->setLang(mOptions->language);
|
||||
|
||||
@@ -559,7 +561,7 @@ section_t Title::run(Uint8 subsection)
|
||||
mScreen->clean(bgColor);
|
||||
|
||||
// Dibuja el tileado de fondo
|
||||
SDL_RenderCopy(mRenderer, mBackground, &mBackgroundWindow, NULL);
|
||||
SDL_RenderCopy(mRenderer, mBackground, &mBackgroundWindow, nullptr);
|
||||
|
||||
// Dibuja el degradado
|
||||
mGradient->render();
|
||||
@@ -613,7 +615,7 @@ section_t Title::run(Uint8 subsection)
|
||||
mScreen->clean(bgColor);
|
||||
|
||||
// Dibuja el tileado de fondo
|
||||
SDL_RenderCopy(mRenderer, mBackground, &mBackgroundWindow, NULL);
|
||||
SDL_RenderCopy(mRenderer, mBackground, &mBackgroundWindow, nullptr);
|
||||
|
||||
// Dibuja el degradado
|
||||
mGradient->render();
|
||||
@@ -853,7 +855,7 @@ section_t Title::run(Uint8 subsection)
|
||||
mScreen->clean(bgColor);
|
||||
|
||||
// Dibuja el tileado de fondo
|
||||
SDL_RenderCopy(mRenderer, mBackground, &mBackgroundWindow, NULL);
|
||||
SDL_RenderCopy(mRenderer, mBackground, &mBackgroundWindow, nullptr);
|
||||
|
||||
// Dibuja el degradado
|
||||
mGradient->render();
|
||||
|
||||
Reference in New Issue
Block a user