Skip to content

Commit 247e8e9

Browse files
committed
pixelDensity (OpenGL): fix stop button in 2x present mode
1 parent a462b1b commit 247e8e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/processing/opengl/PSurfaceJOGL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ protected void nativeMouseEvent(com.jogamp.newt.event.MouseEvent nativeEvent,
10551055
mx -= (int)pgl.presentX;
10561056
my -= (int)pgl.presentY;
10571057
if (peAction == KeyEvent.RELEASE &&
1058-
pgl.insideStopButton(sx, sy - screenRect.height)) {
1058+
pgl.insideStopButton(sx, sy - screenRect.height / scale)) {
10591059
sketch.exit();
10601060
}
10611061
if (mx < 0 || sketchWidth < mx || my < 0 || sketchHeight < my) {

0 commit comments

Comments
 (0)