unfix: overlay scaling issue

This commit is contained in:
Natsumi
2025-12-14 14:11:10 +11:00
parent 684482daaf
commit 3cd68622d3
4 changed files with 10 additions and 30 deletions

View File

@@ -33,15 +33,7 @@ namespace VRCX
private static readonly float[] _rotationRight = { -90f * (float)(Math.PI / 180f), -90f * (float)(Math.PI / 180f), -90f * (float)(Math.PI / 180f) };
private static OffScreenBrowser _wristOverlay;
private static OffScreenBrowser _hmdOverlay;
private static readonly IRequestContext VrOverlayRequestContext = new RequestContext(
new RequestContextSettings
{
CachePath = string.Empty,
PersistSessionCookies = false,
PersistUserPreferences = false
}
);
private readonly List<string[]> _deviceList;
private readonly ReaderWriterLockSlim _deviceListLock;
private bool _active;
@@ -205,15 +197,13 @@ namespace VRCX
_wristOverlay = new OffScreenBrowser(
Program.LaunchDebug ? "http://localhost:9000/vr.html?wrist" : "file://vrcx/vr.html?wrist",
512,
512,
VrOverlayRequestContext
512
);
_hmdOverlay = new OffScreenBrowser(
Program.LaunchDebug ? "http://localhost:9000/vr.html?hmd" : "file://vrcx/vr.html?hmd",
1024,
1024,
VrOverlayRequestContext
1024
);
while (_thread != null)