From b90db1edaee5eb0d31430defa63680e126a433b1 Mon Sep 17 00:00:00 2001 From: turanszkij Date: Fri, 27 May 2016 00:51:50 +0200 Subject: [PATCH] updated backlog --- WickedEngine/wiBackLog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WickedEngine/wiBackLog.cpp b/WickedEngine/wiBackLog.cpp index 5896c0036..9677b717e 100644 --- a/WickedEngine/wiBackLog.cpp +++ b/WickedEngine/wiBackLog.cpp @@ -68,10 +68,10 @@ void wiBackLog::Draw(){ //wiImage::BatchBegin(); wiImageEffects fx = wiImageEffects((float)wiRenderer::GetDevice()->GetScreenWidth(), (float)wiRenderer::GetDevice()->GetScreenHeight()); fx.pos=XMFLOAT3(0,pos,0); - fx.opacity = wiMath::Lerp(1, 0, pos / wiRenderer::GetDevice()->GetScreenHeight()); + fx.opacity = wiMath::Lerp(1, 0, -pos / wiRenderer::GetDevice()->GetScreenHeight()); wiImage::Draw(backgroundTex, fx); font.SetText(getText()); - font.props.posY = wiRenderer::GetDevice()->GetScreenHeight() - 75 - pos + scroll; + font.props.posY = wiRenderer::GetDevice()->GetScreenHeight() - 75 - pos - scroll; font.Draw(); wiFont(inputArea.str().c_str(), wiFontProps(5, (float)wiRenderer::GetDevice()->GetScreenHeight() - 10, 0, WIFALIGN_LEFT, WIFALIGN_BOTTOM, -8)).Draw(); //wiFont::Draw(wiBackLog::getText(), "01", XMFLOAT4(5, pos - wiRenderer::RENDERHEIGHT + 75 + scroll, 0, -8), "left", "bottom");