Merge pull request #3493 from JakubValtar/bugfix-jogl-setsize

JOGL window size is now set properly
This commit is contained in:
codeanticode
2015-07-20 12:56:50 -04:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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);
}