From 4019b7bc70913f87fe4d35fb7d8c75d98ae590a6 Mon Sep 17 00:00:00 2001 From: z2442 Date: Mon, 29 Apr 2024 20:47:21 -0400 Subject: [PATCH] disable text wrap in GL seems to fail with the font. --- Source/SysGL/Graphics/UIContextGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SysGL/Graphics/UIContextGL.cpp b/Source/SysGL/Graphics/UIContextGL.cpp index 465abe956..46c3d4366 100644 --- a/Source/SysGL/Graphics/UIContextGL.cpp +++ b/Source/SysGL/Graphics/UIContextGL.cpp @@ -340,7 +340,7 @@ s32 IUIContext::DrawTextArea( s32 left, s32 top, u32 width, u32 height, const c u32 length = strlen( text ); std::vector lengths; bool match = false; - DrawTextUtilities::WrapText( mCurrentFont, width, Translate_Strings( text, length ), length, lengths, match ); + //DrawTextUtilities::WrapText( mCurrentFont, width, Translate_Strings( text, length ), length, lengths, match ); s32 x( left ); s32 y( VerticalAlign( vertical_align, top, height, lengths.size() * font_height ) ); @@ -363,7 +363,7 @@ s32 IUIContext::DrawTextArea( s32 left, s32 top, u32 width, u32 height, const c text += lengths[ i ]; } - return y - top; + return 0; } //TODO: Should be in draw text interface