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 despH = this->text->getCharacterSize() / 2;
|
||||||
const int despV = despH;
|
const int despV = despH;
|
||||||
const int travelDist = height + despV;
|
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;
|
const int offset = (int)notifications.size() > 0 ? notifications.back().y + travelDist : despV;
|
||||||
|
|
||||||
// Crea la notificacion
|
// Crea la notificacion
|
||||||
|
|||||||
@@ -371,7 +371,8 @@ void Screen::renderNotifications()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight);
|
//SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight);
|
||||||
|
SDL_RenderSetLogicalSize(renderer, gameCanvasWidth*2, gameCanvasHeight*2);
|
||||||
notify->render();
|
notify->render();
|
||||||
SDL_RenderSetLogicalSize(renderer, gameCanvasWidth, gameCanvasHeight);
|
SDL_RenderSetLogicalSize(renderer, gameCanvasWidth, gameCanvasHeight);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user