fix: overlay scaling issue

This commit is contained in:
pa
2025-12-13 23:44:24 +09:00
committed by Natsumi
parent 728434f336
commit ae1cf134cc
5 changed files with 47 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ namespace VRCX
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public OffScreenBrowser(string address, int width, int height)
public OffScreenBrowser(string address, int width, int height, IRequestContext requestContext = null)
: base(address, automaticallyCreateBrowser: false)
{
var windowInfo = new WindowInfo();
@@ -42,7 +42,7 @@ namespace VRCX
WindowlessFrameRate = 60
};
CreateBrowser(windowInfo, browserSettings);
CreateBrowser(windowInfo, browserSettings, requestContext);
Size = new System.Drawing.Size(width, height);
RenderHandler = this;