mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-10 06:40:24 -05:00
f1a54190bc
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.
13 lines
484 B
Diff
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;
|
|
}
|
|
}
|
|
|