Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit ad576e2

Browse files
committed
Remove GetIntX and GetIntY
They were duplicates of GetRoundIntX and GetRoundIntY. Fix rounding to be flooring in draw functions of Primitive.cpp.
1 parent 5280ac5 commit ad576e2

File tree

3 files changed

+93
-105
lines changed

3 files changed

+93
-105
lines changed

Managers/FrameMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ namespace RTE {
11361136

11371137
if (m_TextCentered[playerScreen]) { textPosY = (bufferOrScreenHeight / 2) - 52; }
11381138

1139-
int screenOcclusionOffsetX = g_SceneMan.GetScreenOcclusion(playerScreen).GetIntX();
1139+
int screenOcclusionOffsetX = g_SceneMan.GetScreenOcclusion(playerScreen).GetRoundIntX();
11401140
// If there's really no room to offset the text into, then don't
11411141
if (GetPlayerScreenWidth() <= GetResX() / 2) { screenOcclusionOffsetX = 0; }
11421142

0 commit comments

Comments
 (0)