Cambiado el tamaño de las notificaciones. Posibilidad de añadir un icono

This commit is contained in:
2022-12-29 11:36:44 +01:00
parent 510a6ca718
commit b2061c86d2
5 changed files with 66 additions and 41 deletions

View File

@@ -370,9 +370,9 @@ void Screen::updateNotifier()
}
// Muestra una notificación de texto por pantalla;
void Screen::showNotification(std::string text1, std::string text2)
void Screen::showNotification(std::string text1, std::string text2, int icon)
{
notify->showText(text1, text2);
notify->showText(text1, text2, icon);
}
// Dibuja las notificaciones
@@ -383,9 +383,9 @@ void Screen::renderNotifications()
return;
}
// SDL_RenderSetLogicalSize(renderer, notificationLogicalWidth, notificationLogicalHeight);
SDL_RenderSetLogicalSize(renderer, notificationLogicalWidth, notificationLogicalHeight);
notify->render();
// SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight);
SDL_RenderSetLogicalSize(renderer, windowWidth, windowHeight);
}
// Establece el tamaño de las notificaciones