From d562e2fe358db39725650270ce29f5b5d58e03ed Mon Sep 17 00:00:00 2001 From: iTut <83431472+iTutFadU@users.noreply.github.com> Date: Mon, 29 Sep 2025 06:24:36 +0300 Subject: [PATCH] Use `start` instead of 0 for the starting index in `text(char[], int, int, float, float)` --- core/src/processing/core/PGraphics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/core/PGraphics.java b/core/src/processing/core/PGraphics.java index 0b9f0d2ed4..1ada6aa2ae 100644 --- a/core/src/processing/core/PGraphics.java +++ b/core/src/processing/core/PGraphics.java @@ -4768,7 +4768,7 @@ public void text(char[] chars, int start, int stop, float x, float y) { } // int start = 0; - int index = 0; + int index = start; while (index < stop) { //length) { if (chars[index] == '\n') { textLineAlignImpl(chars, start, index, x, y);