From 2faf255100331ae17dbc5f9072edb4fd9dd68773 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 14 Apr 2015 22:01:22 +0100 Subject: [PATCH] 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 --- src/sna/sna_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 944bb535..c842d9a2 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,