Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 842907 Details for
Bug 886157
x11-libs/gtk+-3.24*: patch to restore X11 DPI autodetection behavior (from gtk old bugzilla)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Original patch with meaningful filename
0001-Xft-setting-fallback-compute-DPI-properly.patch (text/plain), 1.33 KB, created by
Nikita Zlobin
on 2022-12-15 19:13:24 UTC
(
hide
)
Description:
Original patch with meaningful filename
Filename:
MIME Type:
Creator:
Nikita Zlobin
Created:
2022-12-15 19:13:24 UTC
Size:
1.33 KB
patch
obsolete
>From 269f2d80ea41cde17612600841fbdc32e99010f5 Mon Sep 17 00:00:00 2001 >From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> >Date: Tue, 24 Jan 2017 12:30:08 +0100 >Subject: [PATCH] Xft setting fallback: compute DPI properly > >This is a partial revert of bdf0820c501437a2150d8ff0d5340246e713f73f. If >the Xft DPI settings are not explicitly set, use the values provided by >the X server rather than hard-coding the fallback value of 96. > >While an auto-configured Xorg already reports 96, this value can be >overriden by the user, and we should respect the user choice in this >case. There is no need to require them to set the same value in >different places (the Xorg DPI settings and Xft.dpi). >--- > gdk/x11/gdkxftdefaults.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/gdk/x11/gdkxftdefaults.c b/gdk/x11/gdkxftdefaults.c >index fa1cfde2ec..c462b78c4b 100644 >--- a/gdk/x11/gdkxftdefaults.c >+++ b/gdk/x11/gdkxftdefaults.c >@@ -174,7 +174,8 @@ init_xft_settings (GdkScreen *screen) > x11_screen->xft_rgba = FC_RGBA_UNKNOWN; > > if (!get_double_default (xdisplay, "dpi", &dpi_double)) >- dpi_double = 96.0; >+ dpi_double = (DisplayHeight(xdisplay, x11_screen->screen_num)*25.4)/ >+ DisplayHeightMM(xdisplay, x11_screen->screen_num); > > x11_screen->xft_dpi = (int)(0.5 + PANGO_SCALE * dpi_double); > } >-- >2.11.0.616.gd72966cf44.dirty >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 886157
: 842907