mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07:19 +02:00
Support dynamic resolution with WebGL2 in Genshin
This commit is contained in:
parent
1ca2b771e7
commit
cf4609d87b
4
dist/better-xcloud.lite.user.js
vendored
4
dist/better-xcloud.lite.user.js
vendored
File diff suppressed because one or more lines are too long
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@ -71,12 +71,14 @@ div[data-testid=media-container] {
|
||||
align-self: center;
|
||||
background: #000;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
canvas {
|
||||
position: absolute;
|
||||
align-self: center;
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
@ -180,6 +180,8 @@ export class StreamPlayer {
|
||||
$webGL2Canvas.style.width = targetWidth;
|
||||
$webGL2Canvas.style.height = targetHeight;
|
||||
$webGL2Canvas.style.objectFit = targetObjectFit;
|
||||
|
||||
$video.dispatchEvent(new Event('resize'));
|
||||
}
|
||||
|
||||
// Update video dimensions
|
||||
|
Loading…
x
Reference in New Issue
Block a user