diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-20 21:19:05 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-20 21:24:56 +0200 |
commit | 0750f040190b5f1cd4cc97841dd74da90db184c4 (patch) | |
tree | 951cf43f886a29dcdb54d8fbf4bd85ff46eed533 /src/render | |
parent | fix (diff) | |
download | re3-0750f040190b5f1cd4cc97841dd74da90db184c4.tar re3-0750f040190b5f1cd4cc97841dd74da90db184c4.tar.gz re3-0750f040190b5f1cd4cc97841dd74da90db184c4.tar.bz2 re3-0750f040190b5f1cd4cc97841dd74da90db184c4.tar.lz re3-0750f040190b5f1cd4cc97841dd74da90db184c4.tar.xz re3-0750f040190b5f1cd4cc97841dd74da90db184c4.tar.zst re3-0750f040190b5f1cd4cc97841dd74da90db184c4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Font.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp index f14e45cd..787a0c40 100644 --- a/src/render/Font.cpp +++ b/src/render/Font.cpp @@ -475,10 +475,14 @@ CFont::PrintString(float xstart, float ystart, wchar *s) bool first; wchar *start, *t; + Details.bFlash = false; + if(*s == '*') return; + Details.anonymous_25++; if(Details.background){ + RenderState.color = Details.color; GetNumberLines(xstart, ystart, s); // BUG: result not used GetTextRect(&rect, xstart, ystart, s); CSprite2d::DrawRect(rect, Details.backgroundColor); @@ -1292,6 +1296,7 @@ CFont::RenderFontBuffer() RenderState = *(CFontRenderState*)&FontRenderStateBuf[0]; textPosX = RenderState.fTextPosX; textPosY = RenderState.fTextPosY; + color = RenderState.color; tFontRenderStatePointer pRenderStateBufPointer; pRenderStateBufPointer.pRenderState = (CFontRenderState*)&FontRenderStateBuf[0]; for (++pRenderStateBufPointer.pRenderState; pRenderStateBufPointer.pStr < FontRenderStatePointer.pStr; pRenderStateBufPointer.pStr++) { |