can re-enable fill/stroke in PShapeOpenGL (fixes #3808)

This commit is contained in:
codeanticode
2015-09-18 18:09:37 -05:00
parent c580c6475c
commit e61178f71e
2 changed files with 19 additions and 11 deletions

View File

@@ -297,6 +297,21 @@ public class PSurfaceJOGL implements PSurface {
sketch.displayWidth = screenRect.width;
sketch.displayHeight = screenRect.height;
if (sketch.displayWidth < sketch.width ||
sketch.displayHeight < sketch.height) {
int w = sketch.width;
int h = sketch.height;
if (sketch.displayWidth < w) {
w = sketch.displayWidth;
}
if (sketch.displayHeight < h) {
h = sketch.displayHeight;
}
// sketch.setSize(w, h - 22 - 2);
// graphics.setSize(w, h - 22 - 22);
System.err.println("setting width/height to " + w + " " + h);
}
sketchWidth = sketch.sketchWidth();
sketchHeight = sketch.sketchHeight();