mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
pixelDensity (OpenGL): fix stop button in 2x present mode
This commit is contained in:
@@ -1055,7 +1055,7 @@ public class PSurfaceJOGL implements PSurface {
|
||||
mx -= (int)pgl.presentX;
|
||||
my -= (int)pgl.presentY;
|
||||
if (peAction == KeyEvent.RELEASE &&
|
||||
pgl.insideStopButton(sx, sy - screenRect.height)) {
|
||||
pgl.insideStopButton(sx, sy - screenRect.height / scale)) {
|
||||
sketch.exit();
|
||||
}
|
||||
if (mx < 0 || sketchWidth < mx || my < 0 || sketchHeight < my) {
|
||||
|
||||
Reference in New Issue
Block a user