Skip to content

Commit

Permalink
disable text wrap in GL seems to fail with the font.
Browse files Browse the repository at this point in the history
  • Loading branch information
z2442 committed Apr 30, 2024
1 parent 6a84fe8 commit 4019b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SysGL/Graphics/UIContextGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ s32 IUIContext::DrawTextArea( s32 left, s32 top, u32 width, u32 height, const c
u32 length = strlen( text );
std::vector<u32> 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 ) );
Expand All @@ -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
Expand Down

0 comments on commit 4019b7b

Please sign in to comment.