Răsfoiți Sursa

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

Random 5 ani în urmă
părinte
comite
e07281f8bd
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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;
                 startLine = endLine;
                 endLine = -1;
                 endLine = -1;
                 glyphWidth = 0;
                 glyphWidth = 0;
+                selectStart += lastk - k;
                 k = lastk;
                 k = lastk;
 
 
                 state = !state;
                 state = !state;