mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
can re-enable fill/stroke in PShapeOpenGL (fixes #3808)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user