diff options
| author | Ray <[email protected]> | 2021-09-01 23:11:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-09-01 23:11:31 +0200 |
| commit | 6e76baa6a93d039e132fe11eedc74958971bf4a3 (patch) | |
| tree | c90d7f233d362b34d84a106a656aa56517727d6b /examples/text/text_rectangle_bounds.c | |
| parent | a0f8682905fee1b65c903f1f46adff6e06ab6ae7 (diff) | |
| download | raylib-6e76baa6a93d039e132fe11eedc74958971bf4a3.tar.gz raylib-6e76baa6a93d039e132fe11eedc74958971bf4a3.zip | |
WARNING: BREAKING: RENAMED: Font struct variables
RENAMED: GetCodepointsCount() -> GetCodepointCount()
RENAMED: GetTouchPointsCount() -> GetTouchPointCount()
Diffstat (limited to 'examples/text/text_rectangle_bounds.c')
| -rw-r--r-- | examples/text/text_rectangle_bounds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/text/text_rectangle_bounds.c b/examples/text/text_rectangle_bounds.c index 0da1a8ab..b4884fb3 100644 --- a/examples/text/text_rectangle_bounds.c +++ b/examples/text/text_rectangle_bounds.c @@ -166,7 +166,7 @@ static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec, float glyphWidth = 0; if (codepoint != '\n') { - glyphWidth = (font.chars[index].advanceX == 0) ? font.recs[index].width*scaleFactor : font.chars[index].advanceX*scaleFactor; + glyphWidth = (font.glyphs[index].advanceX == 0) ? font.recs[index].width*scaleFactor : font.glyphs[index].advanceX*scaleFactor; if (i + 1 < length) glyphWidth = glyphWidth + spacing; } |
