Resuelto bug en las entradas de menus al dibujar elementos grises que previamente habian tenido el foco

This commit is contained in:
2023-09-30 11:05:48 +02:00
parent 00e25e1b51
commit df987e33b2
2 changed files with 22 additions and 19 deletions

View File

@@ -226,10 +226,10 @@ void EnterID::fillTexture()
SDL_RenderClear(renderer);
// Añade el efecto de degradado en el fondo
Texture *gradient = new Texture(renderer, asset->get("title_gradient.png"));
SDL_Rect rect = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT};
//Texture *gradient = new Texture(renderer, asset->get("title_gradient.png"));
//SDL_Rect rect = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT};
//gradient->render(renderer, 0, 0, &rect);
delete gradient;
//delete gradient;
// Escribe el texto en la textura
const int desp = 40;