Browse Source

avoid leading spaces in `text_rectangle_bounds` (#2746)

pull/2750/head
Szieberth Ádám 2 years ago
committed by GitHub
parent
commit
4cca234f46
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/text/text_rectangle_bounds.c

+ 2
- 2
examples/text/text_rectangle_bounds.c View File

@ -263,6 +263,6 @@ static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec,
}
}
textOffsetX += glyphWidth;
k">if ((textOffsetX != 0) || (codepoint != ' ')) textOffsetX += glyphWidth; // avoid leading spaces
}
}
}

Loading…
Cancel
Save