mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #3493 from JakubValtar/bugfix-jogl-setsize
JOGL window size is now set properly
This commit is contained in:
@@ -10235,7 +10235,7 @@ public class PApplet implements PConstants {
|
||||
@Override
|
||||
public void setSize(int w, int h) {
|
||||
deprecationWarning("setSize");
|
||||
surface.setLocation(w, h);
|
||||
surface.setSize(w, h);
|
||||
}
|
||||
|
||||
private void deprecationWarning(String method) {
|
||||
|
||||
@@ -564,6 +564,7 @@ public class PSurfaceJOGL implements PSurface {
|
||||
sketchWidth = width;
|
||||
sketchHeight = height;
|
||||
graphics.setSize(width, height);
|
||||
window.setSize(width, height);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user