diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-08 10:00:24 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-08 10:00:24 +0100 |
commit | 016ff5b4aa98ed24938284bfbf6db9373981a5de (patch) | |
tree | 8ea809158b4ade6e2d6ecd70453e6a9766b25cd0 /src/render | |
parent | pool stuff fix (diff) | |
parent | Pool fixes from master (diff) | |
download | re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.gz re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.bz2 re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.lz re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.xz re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.tar.zst re3-016ff5b4aa98ed24938284bfbf6db9373981a5de.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Font.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp index 5a6ff94f..a3132627 100644 --- a/src/render/Font.cpp +++ b/src/render/Font.cpp @@ -374,7 +374,11 @@ CFont::PrintChar(float x, float y, wchar c) if(Details.style == FONT_BANK || Details.style == FONT_STANDARD){ if (bDontPrint) return; if (RenderState.slant == 0.0f) { +#ifdef FIX_BUGS + if (c < 192) { +#else if (c < 193) { +#endif CSprite2d::AddToBuffer( CRect(x, y, x + 32.0f * RenderState.scaleX * 1.0f, @@ -390,9 +394,9 @@ CFont::PrintChar(float x, float y, wchar c) x + 32.0f * RenderState.scaleX * 1.0f, y + 33.0f * RenderState.scaleY * 0.5f), RenderState.color, - xoff / 16.0f, yoff / 12.8f, - (xoff + 1.0f) / 16.0f - 0.001f, yoff / 12.8f - 0.017f, - xoff / 16.0f, (yoff + 1.0f) / 12.8f, + xoff / 16.0f, yoff / 12.8f + 0.0021f, + (xoff + 1.0f) / 16.0f - 0.001f, yoff / 12.8f + 0.0021f, + xoff / 16.0f, (yoff + 1.0f) / 12.8f - 0.017f, (xoff + 1.0f) / 16.0f - 0.001f, (yoff + 1.0f) / 12.8f - 0.017f); } } else |