Skip to content

Commit 69e9307

Browse files
committed
orientation will be changed at runtime only
Signed-off-by: Umair Khan <[email protected]>
1 parent f2b7f2e commit 69e9307

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/processing/core/PApplet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,15 +1128,15 @@ public String sketchRenderer() {
11281128
return renderer;
11291129
}
11301130

1131-
/*
1131+
11321132
public void orientation(int which) {
11331133
if (which == PORTRAIT) {
1134-
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
1134+
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
11351135
} else if (which == LANDSCAPE) {
1136-
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
1136+
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
11371137
}
11381138
}
1139-
*/
1139+
11401140

11411141
// public int sketchOrientation() {
11421142
// return ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;

0 commit comments

Comments
 (0)