xf86-video-intel: src/sna/sna_display.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Apr 14 14:05:14 PDT 2015
src/sna/sna_display.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 2faf255100331ae17dbc5f9072edb4fd9dd68773
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Apr 14 22:01:22 2015 +0100
sna: Reverse the size check so that it works
I managed to confuse myself when testing since I had to force the
addition of default modes...
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 944bb53..c842d9a 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3323,8 +3323,8 @@ default_modes(DisplayModePtr preferred)
preferred->VDisplay * 16,
preferred->HDisplay*9 + preferred->HDisplay/32));
for (n = 0; n < ARRAY_SIZE(common_16_9); n++) {
- if (preferred->HDisplay >= common_16_9[n].width ||
- preferred->VDisplay >= common_16_9[n].height)
+ if (preferred->HDisplay <= common_16_9[n].width ||
+ preferred->VDisplay <= common_16_9[n].height)
break;
m = xf86GTFMode(common_16_9[n].width,
@@ -3345,8 +3345,8 @@ default_modes(DisplayModePtr preferred)
preferred->VDisplay * 16,
preferred->HDisplay*10 + preferred->HDisplay/32));
for (n = 0; n < ARRAY_SIZE(common_16_10); n++) {
- if (preferred->HDisplay >= common_16_10[n].width ||
- preferred->VDisplay >= common_16_10[n].height)
+ if (preferred->HDisplay <= common_16_10[n].width ||
+ preferred->VDisplay <= common_16_10[n].height)
break;
m = xf86GTFMode(common_16_10[n].width,
More information about the xorg-commit
mailing list