From e4e4be4fceb93720fd99d604759cf0e362cc2f12 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sun, 27 Jul 2025 16:45:04 +0200 Subject: d_gfx mostly OK --- src/d/lyt/d_textbox.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/d/lyt/d_textbox.cpp') 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 *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); -- cgit v1.2.3