mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
oops, add that method
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package processing.opengl;
|
||||
|
||||
import java.awt.Canvas;
|
||||
import java.awt.Color;
|
||||
import java.awt.Frame;
|
||||
import java.awt.Rectangle;
|
||||
@@ -59,6 +60,15 @@ public class PSurfaceNEWT implements PSurface {
|
||||
|
||||
}
|
||||
|
||||
public Canvas initCanvas(PApplet sketch) {
|
||||
this.sketch = sketch;
|
||||
|
||||
sketchWidth = sketch.sketchWidth();
|
||||
sketchHeight = sketch.sketchHeight();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public Frame initFrame(PApplet sketch, Color backgroundColor,
|
||||
int deviceIndex, boolean fullScreen,
|
||||
boolean spanDisplays) {
|
||||
|
||||
Reference in New Issue
Block a user