backlog bug corrected

This commit is contained in:
turanszkij
2015-09-24 00:06:00 +02:00
parent ec3b411b1f
commit 65d3b8b2cf
+2 -1
View File
@@ -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");