[gnome-settings-daemon] xsettings: remove check for native resolution when determining hi-dpi
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] xsettings: remove check for native resolution when determining hi-dpi
- Date: Fri, 14 Mar 2014 14:37:47 +0000 (UTC)
commit 2d8beaffe941a66d48a35d6957ebc705cf3291d7
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Mar 13 16:39:38 2014 -0400
xsettings: remove check for native resolution when determining hi-dpi
A non-native resolution, can still be hi-dpi - e.g., on my laptop,
gnome-settings-daemon lists a resolution of 1920x1440 on my 2560x1440
display. The other checks we have in place should be sufficient to
disable hi-dpi support if the user picks a small resolution.
https://bugzilla.gnome.org/show_bug.cgi?id=709859
plugins/xsettings/gsd-xsettings-manager.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index d1798f5..739c269 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -466,26 +466,6 @@ get_primary_output (GnomeRRScreen *screen)
}
static gboolean
-primary_monitor_at_native_resolution (GnomeRROutput *primary)
-{
- int current_width, current_height;
- int pref_width, pref_height;
- gboolean native = TRUE;
- GnomeRRMode *mode;
-
- mode = gnome_rr_output_get_current_mode (primary);
- current_width = gnome_rr_mode_get_width (mode);
- current_height = gnome_rr_mode_get_height (mode);
- mode = gnome_rr_output_get_preferred_mode (primary);
- pref_width = gnome_rr_mode_get_width (mode);
- pref_height = gnome_rr_mode_get_height (mode);
- if (current_width != pref_width || current_height != pref_height)
- native = FALSE;
-
- return native;
-}
-
-static gboolean
primary_monitor_is_4k (GnomeRROutput *primary)
{
GnomeRRMode *mode;
@@ -511,8 +491,6 @@ primary_monitor_on_hdmi (GnomeRROutput *primary)
static gboolean
primary_monitor_should_skip_resolution_check (GnomeRROutput *primary)
{
- if (!primary_monitor_at_native_resolution (primary))
- return TRUE;
if (!primary_monitor_is_4k (primary) && primary_monitor_on_hdmi (primary))
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]