From 65d3b8b2cf0a1eb99d735bd59ee7f90708b931fb Mon Sep 17 00:00:00 2001 From: turanszkij Date: Thu, 24 Sep 2015 00:06:00 +0200 Subject: [PATCH] backlog bug corrected --- WickedEngine/wiBackLog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WickedEngine/wiBackLog.cpp b/WickedEngine/wiBackLog.cpp index 53c1d9c67..434137eb9 100644 --- a/WickedEngine/wiBackLog.cpp +++ b/WickedEngine/wiBackLog.cpp @@ -26,7 +26,7 @@ void wiBackLog::Initialize(){ inputArea=stringstream(""); const unsigned char colorData[] = { 0, 0, 43, 200, 43, 31, 141, 223 }; wiTextureHelper::CreateTexture(backgroundTex, colorData, 1, 2, 4); - font = wiFont("", wiFontProps(5, pos - wiRenderer::RENDERHEIGHT + 75 + scroll, 0, WIFALIGN_LEFT, WIFALIGN_BOTTOM, -8)); + font = wiFont(L"", wiFontProps(5, 0, 0, WIFALIGN_LEFT, WIFALIGN_BOTTOM, -8)); } void wiBackLog::CleanUp(){ stream.clear(); @@ -69,6 +69,7 @@ void wiBackLog::Draw(){ fx.opacity = wiMath::Lerp(0, 1, pos / wiRenderer::RENDERHEIGHT); wiImage::Draw(backgroundTex, fx); font.SetText(getText()); + font.props.posY = pos - wiRenderer::RENDERHEIGHT + 75 + scroll; font.Draw(); wiFont(inputArea.str().c_str(), wiFontProps(5, -(float)wiRenderer::RENDERHEIGHT + 10, 0, WIFALIGN_LEFT, WIFALIGN_BOTTOM, -8)).Draw(); //wiFont::Draw(wiBackLog::getText(), "01", XMFLOAT4(5, pos - wiRenderer::RENDERHEIGHT + 75 + scroll, 0, -8), "left", "bottom");