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

This commit is contained in:
RandomErrorMessage 2020-03-25 02:09:32 -07:00
parent 5e670be239
commit 0c24ad02b6

View File

@ -973,6 +973,7 @@ void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, f
startLine = endLine; startLine = endLine;
endLine = -1; endLine = -1;
glyphWidth = 0; glyphWidth = 0;
selectStart += lastk - k;
k = lastk; k = lastk;
state = !state; state = !state;