Las notificaciones se dibujan a la mitad de resolución del juego
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user