Skip to content

Commit 8c9dbd9

Browse files
committed
fix axis inversion in textCharImpl
1 parent 2ba7381 commit 8c9dbd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,7 @@ protected void textCharImpl(char ch, float x, float y) {
37743774

37753775
// The default text setting assumes an Y axis pointing down, so
37763776
// inverting in the the case Y points up
3777-
int sign = glCoordsEnabled ? +1 : -1;
3777+
int sign = glCoordsEnabled ? -1 : +1;
37783778

37793779
float x1 = x + lextent * textSize;
37803780
float y1 = y - sign * textent * textSize;

0 commit comments

Comments
 (0)