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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-04-14 22:01:22 +01:00
parent 26fd6bec11
commit 2faf255100
1 changed files with 4 additions and 4 deletions

View File

@ -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,