From 9f1f28a2d77e392133caa25e1a4ef4d76a9e2711 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:52:55 +0700 Subject: [PATCH] Update better-xcloud.user.js --- dist/better-xcloud.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index 1139d38..8abbdd4 100644 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -5246,7 +5246,7 @@ var resizeVideoPlayer = function() { height = Math.min(parentRect.height, Math.ceil(height)); $video.style.width = `${width}px`; $video.style.height = `${height}px`; - $video.style.objectFit = "contain"; + $video.style.objectFit = PREF_RATIO === "16:9" ? "contain" : "fill"; } else { $video.style.width = "100%"; $video.style.height = "100%";