mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Seems to scale properly now.
This commit is contained in:
@@ -85,11 +85,10 @@ namespace CefSharp
|
||||
|
||||
auto screenInfo = _renderWebBrowser->GetScreenInfo();
|
||||
|
||||
//auto scaledWidth = screenInfo.Width / screenInfo.ScaleFactor;
|
||||
//auto scaledHeight = screenInfo.Height / screenInfo.ScaleFactor;
|
||||
//rect = CefRect(0, 0, scaledWidth, scaledHeight);
|
||||
auto scaledWidth = screenInfo.Width / screenInfo.ScaleFactor;
|
||||
auto scaledHeight = screenInfo.Height / screenInfo.ScaleFactor;
|
||||
rect = CefRect(0, 0, scaledWidth, scaledHeight);
|
||||
|
||||
rect = CefRect(0, 0, screenInfo.Width, screenInfo.Height);
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user