pixelDensity (OpenGL): fix stop button in 2x present mode

This commit is contained in:
Jakub Valtar
2017-04-13 20:56:12 +02:00
parent 0a6d38e22e
commit cf5cfdb334

View File

@@ -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) {