summaryrefslogtreecommitdiffstats
path: root/src/render/Font.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-03 17:35:09 +0200
committerGitHub <noreply@github.com>2019-07-03 17:35:09 +0200
commit92af18c165444080fae8bcd2dc9ea6f439ac0039 (patch)
treec7136d627079976fc976cd7b6d66e7ef46cf79f1 /src/render/Font.cpp
parentfixed boat rendering (diff)
parentUpdate Frontend. (diff)
downloadre3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.gz
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.bz2
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.lz
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.xz
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.tar.zst
re3-92af18c165444080fae8bcd2dc9ea6f439ac0039.zip
Diffstat (limited to '')
-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 2130fb95..59023960 100644
--- a/src/render/Font.cpp
+++ b/src/render/Font.cpp
@@ -83,7 +83,7 @@ CFont::Initialise(void)
Sprite[1].SetTexture("pager", "pager_mask");
Sprite[2].SetTexture("font1", "font1_mask");
SetScale(1.0f, 1.0f);
- SetSlantRefPoint(SCREENW, 0.0f);
+ SetSlantRefPoint(SCREEN_WIDTH, 0.0f);
SetSlant(0.0);
SetColor(CRGBA(0xFF, 0xFF, 0xFF, 0));
SetJustifyOff();
@@ -123,8 +123,8 @@ CFont::InitPerFrame(void)
void
CFont::PrintChar(float x, float y, uint16 c)
{
- if(x <= 0.0f || x >= SCREENW ||
- y <= 0.0f || y >= SCREENH) // 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;