Use start instead of 0 for the starting index in text(char[], int, int, float, float) (#1257)

This commit is contained in:
iTut
2026-02-10 03:23:48 +03:00
committed by GitHub
parent e42055f867
commit 21c2466f9d
+1 -1
View File
@@ -4768,7 +4768,7 @@ public class PGraphics extends PImage implements PConstants {
}
// int start = 0;
int index = 0;
int index = start;
while (index < stop) { //length) {
if (chars[index] == '\n') {
textLineAlignImpl(chars, start, index, x, y);