From da4c7e7ed675c3bf405668739c3012d140856109 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:42 +0200 Subject: Adding upstream version 126.0. Signed-off-by: Daniel Baumann --- widget/ScreenManager.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'widget/ScreenManager.cpp') diff --git a/widget/ScreenManager.cpp b/widget/ScreenManager.cpp index 58e20806eb..84d7316af7 100644 --- a/widget/ScreenManager.cpp +++ b/widget/ScreenManager.cpp @@ -139,7 +139,8 @@ already_AddRefed ScreenManager::ScreenForRect( auto screen = MakeRefPtr( LayoutDeviceIntRect(), LayoutDeviceIntRect(), 0, 0, 0, DesktopToLayoutDeviceScale(), CSSToLayoutDeviceScale(), 96 /* dpi */, - Screen::IsPseudoDisplay::No, hal::ScreenOrientation::None, 0); + Screen::IsPseudoDisplay::No, Screen::IsHDR::No, + hal::ScreenOrientation::None, 0); return screen.forget(); } @@ -219,10 +220,11 @@ already_AddRefed ScreenManager::GetPrimaryScreen() { if (mScreenList.IsEmpty()) { MOZ_LOG(sScreenLog, LogLevel::Warning, ("No screen available. This can happen in xpcshell.")); - return MakeAndAddRef( - LayoutDeviceIntRect(), LayoutDeviceIntRect(), 0, 0, 0, - DesktopToLayoutDeviceScale(), CSSToLayoutDeviceScale(), 96 /* dpi */, - Screen::IsPseudoDisplay::No, hal::ScreenOrientation::None, 0); + return MakeAndAddRef(LayoutDeviceIntRect(), LayoutDeviceIntRect(), + 0, 0, 0, DesktopToLayoutDeviceScale(), + CSSToLayoutDeviceScale(), 96 /* dpi */, + Screen::IsPseudoDisplay::No, Screen::IsHDR::No, + hal::ScreenOrientation::None, 0); } return do_AddRef(mScreenList[0]); -- cgit v1.2.3