0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-10 06:40:24 -05:00
LibreWolf/patches/rfp-spoof-dpr-to-2.patch
fxbrit f1a54190bc spoof DPR to 2 when RFP is in use
The idea is to improve usability by reducing blurrines on some websites, even tho this increases memory usage.
Ideally -moz-device-pixel-ratio should also be patched to match the value, but that is an issue regardless of DPR value so only tangential.
2023-07-30 23:19:03 +02:00

13 lines
484 B
Diff

diff --git a/dom/base/nsGlobalWindowInner.cpp b/dom/base/nsGlobalWindowInner.cpp
index 3a97351..c15f9a4 100644
--- a/dom/base/nsGlobalWindowInner.cpp
+++ b/dom/base/nsGlobalWindowInner.cpp
@@ -3616,7 +3616,7 @@ double nsGlobalWindowInner::GetDevicePixelRatio(CallerType aCallerType,
nsAutoCString origin;
nsresult rv = this->GetPrincipal()->GetOrigin(origin);
if (NS_FAILED(rv) || origin != "resource://pdf.js"_ns) {
- return 1.0;
+ return 2.0;
}
}