Skip to content

Commit

Permalink
fix module text wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Imrglop committed Oct 11, 2024
1 parent e7c22d4 commit 33ba35b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/screen/impl/ClickGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ void ClickGUI::onRender(Event&) {
// text
auto textRect = modRect;
textRect.left += modRect.getWidth() / 6.f;

// Make the text end before the toggle rectangle
textRect.right = toggleRect.left;
dc.drawText(textRect, mod.name, { 1.f, 1.f, 1.f, 1.f }, FontSelection::PrimaryLight, textHeight, DWRITE_TEXT_ALIGNMENT_LEADING, DWRITE_PARAGRAPH_ALIGNMENT_CENTER);

// toggle
Expand Down

0 comments on commit 33ba35b

Please sign in to comment.