[gnome-settings-daemon/gnome-3-10] 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/gnome-3-10] xsettings: remove check for native resolution when determining hi-dpi
- Date: Fri, 14 Mar 2014 14:43:22 +0000 (UTC)
commit 643e493df651b6266b81cf5eeaa7be2b26583ba6
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 02195d1..0c0e7ba 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -464,26 +464,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;
@@ -509,8 +489,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]