diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-10-30 17:36:26 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-10-30 17:37:24 +0100 |
commit | 13b6bd20caaf1c4d2d13c688c18ac4ce31a8721f (patch) | |
tree | d0e68550ec0e57f9313c16fa817962762a26dc79 | |
parent | 63e31af47681241d0905bcfeaef47b272fb901d3 (diff) | |
download | mutter-13b6bd20caaf1c4d2d13c688c18ac4ce31a8721f.tar.gz |
wayland: Don't check for hi-dpi on monitors with broken EDID
If the monitor reports a width/height that looks suspiciously like an
aspect ratio (16/9 or 16/10) don't check for hi-dpi. We can assume that
makers of devices that do support hi-dpi aren't so careless.
See http://cgit.freedesktop.org/~daniels/xserver/commit/?h=lodpi
https://bugzilla.gnome.org/show_bug.cgi?id=734839
-rw-r--r-- | src/wayland/meta-wayland-outputs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-outputs.c b/src/wayland/meta-wayland-outputs.c index 90990e61f..7ed3ae16f 100644 --- a/src/wayland/meta-wayland-outputs.c +++ b/src/wayland/meta-wayland-outputs.c @@ -75,6 +75,14 @@ compute_scale (MetaOutput *output) output->crtc->rect.width >= SMALLEST_4K_WIDTH) goto out; + /* Somebody encoded the aspect ratio (16/9 or 16/10) + * instead of the physical size */ + if ((output->width_mm == 160 && output->height_mm == 90) || + (output->width_mm == 160 && output->height_mm == 100) || + (output->width_mm == 16 && output->height_mm == 9) || + (output->width_mm == 16 && output->height_mm == 10)) + goto out; + if (output->width_mm > 0 && output->height_mm > 0) { double dpi_x, dpi_y; |