[mate-control-center] 01/01: debian/patches: Update 0000_hidpi.patch. Remove ceil for scaled DPI.
Martin Wimpress
flexiondotorg-guest at moszumanska.debian.org
Fri Jan 26 00:12:49 UTC 2018
This is an automated email from the git hooks/post-receive script.
flexiondotorg-guest pushed a commit to branch ubuntu/bionic
in repository mate-control-center.
commit 617e95ef190eb5661e6d9d03db9661415391de97
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date: Thu Jan 25 23:31:26 2018 +0000
debian/patches: Update 0000_hidpi.patch. Remove ceil for scaled DPI.
---
debian/patches/0000_hidpi.patch | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/debian/patches/0000_hidpi.patch b/debian/patches/0000_hidpi.patch
index 61cca9c..60a982f 100644
--- a/debian/patches/0000_hidpi.patch
+++ b/debian/patches/0000_hidpi.patch
@@ -1,5 +1,5 @@
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
-index 0df8d4e..ee8544b 100644
+index 0df8d4e..cd1a4e5 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -422,6 +422,7 @@ get_dpi_from_x_server (void)
@@ -14,9 +14,9 @@ index 0df8d4e..ee8544b 100644
dpi = DPI_FALLBACK;
}
-+ scale = gdk_window_get_scale_factor(gdk_screen_get_root_window (screen));
++ scale = gdk_window_get_scale_factor (gdk_screen_get_root_window (screen));
+ if (scale)
-+ dpi = ceil(dpi * scale);
++ dpi = dpi * scale;
+
return dpi;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-control-center.git
More information about the pkg-mate-commits
mailing list