Skip to content

Commit 21009f6

Browse files
committed
do not set lineX to zero
1 parent 8c9dbd9 commit 21009f6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3626,7 +3626,6 @@ public void text(String str, float x1, float y1, float x2, float y2) {
36263626
int lineCount = Math.min(textBreakCount, lineFitCount);
36273627

36283628
if (textAlignY == CENTER) {
3629-
lineX = 0;
36303629
float lineHigh = textAscent() + textLeading * (lineCount - 1);
36313630
float y = glCoordsEnabled ? y1 + textAscent() + (boxHeight - lineHigh) / 2 : y2 - textAscent() - (boxHeight - lineHigh) / 2;
36323631
for (int i = 0; i < lineCount; i++) {

0 commit comments

Comments
 (0)