mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* fix: osr use correct screen info. * fix: 40-x-y types * Update breaking changes documentation Removed details about planned breaking API changes for versions 41.0 and 42.0.
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: reito <reito@chromium.org>
|
|
Date: Wed, 29 Oct 2025 00:50:03 +0800
|
|
Subject: patch: osr control screen info
|
|
|
|
We need to override GetNewScreenInfosForUpdate to ensure the screen info
|
|
is updated correctly, instead of overriding GetScreenInfo which seems not
|
|
working.
|
|
|
|
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
|
|
index 2fc206be84d3d41379bb26540cbf0fa4b1ba95fb..cd85325d60f0c47bbd1e15624e96e62a7f51cd47 100644
|
|
--- a/content/browser/renderer_host/render_widget_host_view_base.h
|
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
|
|
@@ -685,7 +685,7 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
|
|
|
// Generates the most current set of ScreenInfos from the current set of
|
|
// displays in the system for use in UpdateScreenInfo.
|
|
- display::ScreenInfos GetNewScreenInfosForUpdate();
|
|
+ virtual display::ScreenInfos GetNewScreenInfosForUpdate();
|
|
|
|
// Called when display properties that need to be synchronized with the
|
|
// renderer process changes. This method is called before notifying
|