From 1144fc3626724e536945fb475d3ec002a2eb888b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Sat, 19 Nov 2022 09:39:14 +0100 Subject: [PATCH] =?UTF-8?q?Las=20notificaciones=20se=20dibujan=20a=20la=20?= =?UTF-8?q?mitad=20de=20resoluci=C3=B3n=20del=20juego?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/common/notify.cpp | 1 - source/common/screen.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/notify.cpp b/source/common/notify.cpp index 1b3ef06..26ef9e1 100644 --- a/source/common/notify.cpp +++ b/source/common/notify.cpp @@ -112,7 +112,6 @@ void Notify::showText(std::string text) const int despH = this->text->getCharacterSize() / 2; const int despV = despH; const int travelDist = height + despV; - // const int offset = (int)notifications.size() * (travelDist) + despV; const int offset = (int)notifications.size() > 0 ? notifications.back().y + travelDist : despV; // Crea la notificacion diff --git a/source/common/screen.cpp b/source/common/screen.cpp index 119dd2d..d017c43 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -371,7 +371,8 @@ void Screen::renderNotifications() return; } - SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight); + //SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight); + SDL_RenderSetLogicalSize(renderer, gameCanvasWidth*2, gameCanvasHeight*2); notify->render(); SDL_RenderSetLogicalSize(renderer, gameCanvasWidth, gameCanvasHeight); } \ No newline at end of file