diff options
| author | robojumper <robojumper@gmail.com> | 2025-07-27 16:45:04 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-07-27 16:45:04 +0200 |
| commit | e4e4be4fceb93720fd99d604759cf0e362cc2f12 (patch) | |
| tree | 30572ef1df20e5521845ce1b2dc6e84e8a6b9518 /src/d/lyt/d_textbox.cpp | |
| parent | 4ec5128eb4f6cdc8985f83f4c8b540115daf47fb (diff) | |
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); |
