mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 20:50:42 +01:00
mac: Fix OSR scaling behavior when switching displays (fixes issue #3423)
This commit is contained in:
parent
44ba3e7c7e
commit
d0e1ac2d42
@ -1053,6 +1053,7 @@ void CefRenderWidgetHostViewOSR::SynchronizeVisualProperties(
|
||||
|
||||
void CefRenderWidgetHostViewOSR::OnScreenInfoChanged() {
|
||||
TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnScreenInfoChanged");
|
||||
InvalidateLocalSurfaceId();
|
||||
if (!render_widget_host_)
|
||||
return;
|
||||
|
||||
|
@ -1183,6 +1183,7 @@ NSPoint ConvertPointFromWindowToScreen(NSWindow* window, NSPoint point) {
|
||||
}
|
||||
|
||||
- (void)viewDidChangeBackingProperties {
|
||||
[super viewDidChangeBackingProperties];
|
||||
const CGFloat device_scale_factor = [self getDeviceScaleFactor];
|
||||
|
||||
if (device_scale_factor == device_scale_factor_)
|
||||
|
Loading…
x
Reference in New Issue
Block a user