summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRandom <[email protected]>2020-03-25 02:27:43 -0700
committerGitHub <[email protected]>2020-03-25 10:27:43 +0100
commite07281f8bdc46934f2141c87be72eff498d5eb7e (patch)
tree3abf5e6934919ba826a09d4579e53d8bcaab4b3d /src
parent5e670be2392b5bdff2db09a65899a978cdb175d4 (diff)
downloadraylib-e07281f8bdc46934f2141c87be72eff498d5eb7e.tar.gz
raylib-e07281f8bdc46934f2141c87be72eff498d5eb7e.zip
Fixed DrawTextRecEx() selection when wordwrap is ON (again) (#1149)
Diffstat (limited to 'src')
-rw-r--r--src/text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index 095f7d8f..bce0e6f9 100644
--- a/src/text.c
+++ b/src/text.c
@@ -973,6 +973,7 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f
startLine = endLine;
endLine = -1;
glyphWidth = 0;
+ selectStart += lastk - k;
k = lastk;
state = !state;