Fit resolutions to less than 2k x 2k (#1065)

* Fit resolutions to less than 2k x 2k

* Integer resolutions

* Scale mouse clicks

* Move stream maxResolution logic to getDimensions
This commit is contained in:
Adam Sunderland
2023-11-13 19:32:07 -05:00
committed by GitHub
parent 381d0b3bc8
commit 251971238d
3 changed files with 11 additions and 24 deletions

View File

@ -640,7 +640,10 @@ export class EngineCommandManager {
// If we already have an engine connection, just need to resize the stream.
if (this.engineConnection) {
this.handleResize({ streamWidth: width, streamHeight: height })
this.handleResize({
streamWidth: width,
streamHeight: height,
})
return
}