Hello community, here is the log from the commit of package sax2 checked in at Thu Apr 10 12:12:34 CEST 2008. -------- --- sax2/sax2.changes 2008-04-08 11:47:02.000000000 +0200 +++ /mounts/work_src_done/STABLE/sax2/sax2.changes 2008-04-10 11:59:12.906599000 +0200 @@ -1,0 +2,5 @@ +Thu Apr 10 11:30:05 CEST 2008 - ms@suse.de + +- fixed sortres function (bnc #378479) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sax2.spec ++++++ --- /var/tmp/diff_new_pack.A19662/_old 2008-04-10 12:11:48.000000000 +0200 +++ /var/tmp/diff_new_pack.A19662/_new 2008-04-10 12:11:48.000000000 +0200 @@ -40,7 +40,7 @@ PreReq: /bin/rm /bin/mkdir /usr/bin/chroot %fillup_prereq %insserv_prereq Summary: SuSE advanced X Window System-configuration Version: 8.1 -Release: 395 +Release: 396 Group: System/X11/Utilities License: GPL v2 or later Source: sax2.tar.bz2 @@ -462,6 +462,8 @@ %endif %changelog +* Thu Apr 10 2008 ms@suse.de +- fixed sortres function (bnc #378479) * Tue Apr 08 2008 ms@suse.de - added 1280x720 to resolution list (bnc #358346) * Mon Apr 07 2008 ms@suse.de ++++++ sax2.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/sax/modules/AutoDetect.pm new/sax/modules/AutoDetect.pm --- old/sax/modules/AutoDetect.pm 2006-05-03 13:58:40.000000000 +0200 +++ new/sax/modules/AutoDetect.pm 2008-04-10 11:40:31.000000000 +0200 @@ -183,7 +183,27 @@ foreach my $i (sort numerisch keys %index) { push(@list,$index{$i}); } - return(@list); + # /.../ + # check list do not use resolutions whose X value doesn't fit + # into the sort order. The pixel value of X*Y is correct but + # we don't want a virtual screen. Example: + # 1280x1024 1440x900 -> remove 1280x1024 + # ---- + my $count = @list; + my @list_new = (); + for (my $i=0;$i<$count;$i++) { + if (! $list[$i+1]) { + push (@list_new,$list[$i]); last; + } + my @res_this = split(/x/,$list[$i]); + my @res_next = split(/x/,$list[$i+1]); + my $x_this = $res_this[0]; + my $x_next = $res_next[0]; + if ($x_this > $x_next) { + push (@list_new,$list[$i]); + } + } + return(@list_new); } #-----[ numbers ]-----# diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/sax/svnbuild new/sax/svnbuild --- old/sax/svnbuild 2008-04-08 11:49:54.000000000 +0200 +++ new/sax/svnbuild 2008-04-10 12:01:45.000000000 +0200 @@ -1 +1 @@ -1568 +1569 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org