mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
add extra fullScreen(display) method, fix error handling
This commit is contained in:
@@ -1572,7 +1572,17 @@ public class PApplet implements PConstants {
|
||||
* Create a full-screen sketch using the default renderer.
|
||||
*/
|
||||
public void fullScreen() {
|
||||
fullScreen(sketchRenderer());
|
||||
if (insideSettings("fullScreen")) {
|
||||
this.fullScreen = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void fullScreen(int display) {
|
||||
if (insideSettings("fullScreen", display)) {
|
||||
this.fullScreen = true;
|
||||
this.display = display;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1591,7 +1601,7 @@ public class PApplet implements PConstants {
|
||||
*/
|
||||
public void fullScreen(String renderer) {
|
||||
if (insideSettings("fullScreen", renderer)) {
|
||||
fullScreen = true;
|
||||
this.fullScreen = true;
|
||||
this.renderer = renderer;
|
||||
}
|
||||
}
|
||||
@@ -1602,7 +1612,7 @@ public class PApplet implements PConstants {
|
||||
*/
|
||||
public void fullScreen(String renderer, int display) {
|
||||
if (insideSettings("fullScreen", renderer, display)) {
|
||||
fullScreen = true;
|
||||
this.fullScreen = true;
|
||||
this.renderer = renderer;
|
||||
this.display = display;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user