Parcourir la source

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

Random il y a 5 ans
Parent
commit
e07281f8bd
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/text.c

+ 1 - 0
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;