applied resolution bounds to try and constrain it to discord's supported resolutions
This commit is contained in:
parent
f1f1c9a7fd
commit
cb8601b38e
2 changed files with 6 additions and 2 deletions
|
@ -468,6 +468,8 @@ function ModalComponent({
|
||||||
const newConstraints = {
|
const newConstraints = {
|
||||||
...constraints,
|
...constraints,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
width: { min: 640, ideal: width, max: 2560 },
|
||||||
|
height: { min: 480, ideal: height, max: 1440 },
|
||||||
advanced: [{ width: width, height: height }],
|
advanced: [{ width: width, height: height }],
|
||||||
resizeMode: "none"
|
resizeMode: "none"
|
||||||
};
|
};
|
||||||
|
@ -502,6 +504,8 @@ function ModalComponent({
|
||||||
const newConstraints = {
|
const newConstraints = {
|
||||||
...constraints,
|
...constraints,
|
||||||
frameRate,
|
frameRate,
|
||||||
|
width: { min: 640, ideal: width, max: 2560 },
|
||||||
|
height: { min: 480, ideal: height, max: 1440 },
|
||||||
advanced: [{ width: width, height: height }],
|
advanced: [{ width: width, height: height }],
|
||||||
resizeMode: "none"
|
resizeMode: "none"
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,8 +34,8 @@ if (isLinux) {
|
||||||
const newConstraints = {
|
const newConstraints = {
|
||||||
...constraints,
|
...constraints,
|
||||||
frameRate,
|
frameRate,
|
||||||
width,
|
width: { min: 640, ideal: width, max: 2560 },
|
||||||
height,
|
height: { min: 480, ideal: height, max: 1440 },
|
||||||
advanced: [{ width: width, height: height }],
|
advanced: [{ width: width, height: height }],
|
||||||
resizeMode: "none"
|
resizeMode: "none"
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue