mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
mac: Fix OSR scaling behavior when switching displays (fixes issue #3423)
This commit is contained in:
committed by
Marshall Greenblatt
parent
f6d626d979
commit
b1a530c76a
@@ -1079,6 +1079,7 @@ void CefRenderWidgetHostViewOSR::SynchronizeVisualProperties(
|
||||
|
||||
void CefRenderWidgetHostViewOSR::OnScreenInfoChanged() {
|
||||
TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnScreenInfoChanged");
|
||||
InvalidateLocalSurfaceId();
|
||||
if (!render_widget_host_) {
|
||||
return;
|
||||
}
|
||||
|
@@ -1232,6 +1232,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_) {
|
||||
|
Reference in New Issue
Block a user