summaryrefslogtreecommitdiffstats
path: root/src/render/Font.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-01-07 15:23:09 +0100
committerGitHub <noreply@github.com>2020-01-07 15:23:09 +0100
commitf9316d9cc3cfb748366758c41cf02634b6df9a08 (patch)
treecb7dafc76cb2966ac86d908fd5d99c3b7c164cf0 /src/render/Font.cpp
parentMerge pull request #285 from Nick007J/script_dev (diff)
downloadre3-f9316d9cc3cfb748366758c41cf02634b6df9a08.tar
re3-f9316d9cc3cfb748366758c41cf02634b6df9a08.tar.gz
re3-f9316d9cc3cfb748366758c41cf02634b6df9a08.tar.bz2
re3-f9316d9cc3cfb748366758c41cf02634b6df9a08.tar.lz
re3-f9316d9cc3cfb748366758c41cf02634b6df9a08.tar.xz
re3-f9316d9cc3cfb748366758c41cf02634b6df9a08.tar.zst
re3-f9316d9cc3cfb748366758c41cf02634b6df9a08.zip
Diffstat (limited to 'src/render/Font.cpp')
-rw-r--r--src/render/Font.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp
index 54243069..2d059516 100644
--- a/src/render/Font.cpp
+++ b/src/render/Font.cpp
@@ -123,15 +123,15 @@ CFont::InitPerFrame(void)
void
CFont::PrintChar(float x, float y, uint16 c)
{
- if(x <= 0.0f || x >= SCREEN_WIDTH ||
- y <= 0.0f || y >= SCREEN_HEIGHT) // BUG: game uses SCREENW again
+ if(x <= 0.0f || x > SCREEN_WIDTH ||
+ y <= 0.0f || y > SCREEN_HEIGHT) // BUG: game uses SCREENW again
return;
float w = GetCharacterWidth(c) / 32.0f;
float xoff = c & 0xF;
float yoff = c >> 4;
- if(Details.style == 0 || Details.style == 2){
+ if(Details.style == FONT_BANK || Details.style == FONT_HEADING){
if(Details.dropShadowPosition != 0){
CSprite2d::AddSpriteToBank(Details.bank + Details.style, // BUG: game doesn't add bank
CRect(x + SCREEN_SCALE_X(Details.dropShadowPosition),