Fixed DrawTextRecEx() selection when wordwrap is ON (again) (#1149)

This commit is contained in:
Random 2020-03-25 02:27:43 -07:00 committed by GitHub
parent 5e670be239
commit e07281f8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;