1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

rwgame: fix font in LoadingState

This commit is contained in:
Anonymous Maarten 2018-12-24 15:48:01 +01:00 committed by Daniel Evans
parent e77a7caf74
commit c54d9ed2e2

View File

@ -28,15 +28,13 @@ void LoadingState::handleEvent(const SDL_Event& e) {
}
void LoadingState::draw(GameRenderer& r) {
static auto kLoadingString =
GameStringUtil::fromString("Loading...", FONT_ARIAL);
// Display some manner of loading screen.
TextRenderer::TextInfo ti;
ti.text = kLoadingString;
ti.text = GameStringUtil::fromString("Loading...", FONT_ARIAL);
auto size = r.getRenderer().getViewport();
ti.size = 25.f;
ti.screenPosition = glm::vec2(50.f, size.y - ti.size - 50.f);
ti.font = FONT_PRICEDOWN;
ti.font = FONT_ARIAL;
ti.baseColour = glm::u8vec3(255);
r.text.renderText(ti);
}