mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
pixelDensity (OpenGL): fix 2x present mode on Windows
This commit is contained in:
@@ -751,8 +751,9 @@ public class PSurfaceJOGL implements PSurface {
|
||||
|
||||
|
||||
public void placePresent(int stopColor) {
|
||||
pgl.initPresentMode(0.5f * (screenRect.width - sketchWidth),
|
||||
0.5f * (screenRect.height - sketchHeight), stopColor);
|
||||
float scale = getPixelScale();
|
||||
pgl.initPresentMode(0.5f * (screenRect.width/scale - sketchWidth),
|
||||
0.5f * (screenRect.height/scale - sketchHeight), stopColor);
|
||||
window.setSize(screenRect.width, screenRect.height);
|
||||
PApplet.hideMenuBar();
|
||||
window.setTopLevelPosition(sketchX + screenRect.x,
|
||||
|
||||
Reference in New Issue
Block a user