diff options
| author | robojumper <robojumper@gmail.com> | 2025-08-02 09:19:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-02 09:19:04 +0200 |
| commit | 899f86a57111df7545e5ab031e92d8564faa112a (patch) | |
| tree | ac293990b33eb3f4be87b505d538ffc47929362f /src/d/lyt/d_textbox.cpp | |
| parent | e2bba3730bff60d4174f4b8add74913b0aa53d3a (diff) | |
| parent | b5f05db18226c795a92a55788c7bd36c8985b9af (diff) | |
Merge pull request #225 from robojumper/d_gfx
d_gfx mostly OK
Diffstat (limited to 'src/d/lyt/d_textbox.cpp')
| -rw-r--r-- | src/d/lyt/d_textbox.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/d/lyt/d_textbox.cpp b/src/d/lyt/d_textbox.cpp index 1f14ab02..7f77feb6 100644 --- a/src/d/lyt/d_textbox.cpp +++ b/src/d/lyt/d_textbox.cpp @@ -152,8 +152,6 @@ static void CalcStringRectImpl( } while (remain > 0); } -extern "C" bool NeedsScreenAdjustment(); - static int CalcLineRectImpl( nw4r::ut::Rect *pRect, nw4r::ut::TextWriterBase<wchar_t> *pTextWriter, const wchar_t *str, int length, f32 maxWidth, bool *pbOver, bool *pbWideScreenUnk @@ -187,7 +185,7 @@ static int CalcLineRectImpl( pTextWriter->SetCursorX(x); // ?????????? - if (pbWideScreenUnk != nullptr && ((u32 *)context.str)[0] == 0 && NeedsScreenAdjustment()) { + if (pbWideScreenUnk != nullptr && ((u32 *)context.str)[0] == 0 && dGfx_c::isTvModeWidescreen()) { *pbWideScreenUnk = true; } operation = pTextWriter->GetTagProcessor()->CalcRect(&rect, code, &context); |
