xf86-video-intel: Branch 'modesetting' - src/i830_modes.c

Adam Jackson ajax at kemper.freedesktop.org
Fri Jul 14 02:10:16 EEST 2006


 src/i830_modes.c |    1 +
 1 files changed, 1 insertion(+)

New commits:
diff-tree de470aaf5c47f4d2b0f477ac678039ef43af773d (from 22843830ebdd14247aa76d19f89494a56e2ac887)
Author: Adam Jackson <ajax at benzedrine.nwnk.net>
Date:   Thu Jul 13 19:10:11 2006 -0400

    In I830xf86SortModes, catch cases where two modes are equal in only one
    dimension, by comparing the areas of the modes.  Otherwise, 800x600 would
    sort before 1024x600 if it was added later.

diff --git a/src/i830_modes.c b/src/i830_modes.c
index bf480a6..1965c39 100644
--- a/src/i830_modes.c
+++ b/src/i830_modes.c
@@ -198,6 +198,7 @@ I830xf86SortModes(DisplayModePtr new, Di
     while (p) {
 	if (((new->HDisplay < p->HDisplay) &&
 	     (new->VDisplay < p->VDisplay)) ||
+	    ((new->HDisplay * new->VDisplay) < (p->HDisplay * p->VDisplay)) ||
 	    ((new->HDisplay == p->HDisplay) &&
 	     (new->VDisplay == p->VDisplay) &&
 	     (new->Clock < p->Clock))) {



More information about the xorg-commit mailing list