Skip to content

Commit 6c86180

Browse files
committed
added factor argument, temprarily set to 1 until retina resolutions are
properly supported throughout
1 parent 37e9648 commit 6c86180

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/processing/video/Capture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public synchronized void read() {
390390
}
391391

392392
if (firstFrame) {
393-
super.init(bufWidth, bufHeight, ARGB);
393+
super.init(bufWidth, bufHeight, ARGB, 1);
394394
firstFrame = false;
395395
}
396396

@@ -419,7 +419,7 @@ public synchronized void read() {
419419
}
420420

421421
if (firstFrame) {
422-
super.init(bufWidth, bufHeight, RGB);
422+
super.init(bufWidth, bufHeight, RGB, 1);
423423
firstFrame = false;
424424
}
425425

src/processing/video/Movie.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ public synchronized void read() {
528528
}
529529

530530
if (firstFrame) {
531-
super.init(bufWidth, bufHeight, ARGB);
531+
super.init(bufWidth, bufHeight, ARGB, 1);
532532
firstFrame = false;
533533
}
534534

@@ -556,7 +556,7 @@ public synchronized void read() {
556556
}
557557

558558
if (firstFrame) {
559-
super.init(bufWidth, bufHeight, RGB);
559+
super.init(bufWidth, bufHeight, RGB, 1);
560560
firstFrame = false;
561561
}
562562

0 commit comments

Comments
 (0)