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 = { | ||||
|                                     ...constraints, | ||||
|                                     frameRate, | ||||
|                                     width: { min: 640, ideal: width, max: 2560 }, | ||||
|                                     height: { min: 480, ideal: height, max: 1440 }, | ||||
|                                     advanced: [{ width: width, height: height }], | ||||
|                                     resizeMode: "none" | ||||
|                                 }; | ||||
|  | @ -502,6 +504,8 @@ function ModalComponent({ | |||
|                                     const newConstraints = { | ||||
|                                         ...constraints, | ||||
|                                         frameRate, | ||||
|                                         width: { min: 640, ideal: width, max: 2560 }, | ||||
|                                         height: { min: 480, ideal: height, max: 1440 }, | ||||
|                                         advanced: [{ width: width, height: height }], | ||||
|                                         resizeMode: "none" | ||||
|                                     }; | ||||
|  |  | |||
|  | @ -34,8 +34,8 @@ if (isLinux) { | |||
|         const newConstraints = { | ||||
|             ...constraints, | ||||
|             frameRate, | ||||
|             width, | ||||
|             height, | ||||
|             width: { min: 640, ideal: width, max: 2560 }, | ||||
|             height: { min: 480, ideal: height, max: 1440 }, | ||||
|             advanced: [{ width: width, height: height }], | ||||
|             resizeMode: "none" | ||||
|         }; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 kaitlynkittyy
						kaitlynkittyy