Hello community, here is the log from the commit of package xorg-x11-driver-video checked in at Mon Aug 20 17:44:32 CEST 2007. -------- --- xorg-x11-driver-video/xorg-x11-driver-video.changes 2007-08-17 11:54:17.000000000 +0200 +++ /mounts/work_src_done/STABLE/xorg-x11-driver-video/xorg-x11-driver-video.changes 2007-08-20 09:56:40.000000000 +0200 @@ -1,0 +2,7 @@ +Mon Aug 20 09:56:35 CEST 2007 - sndirsch@suse.de + +- xf86-video-ati-bug296856.diff: + * set default virtualX and virtualY to max resolution that + display supports (Bug #296856) + +------------------------------------------------------------------- New: ---- xf86-video-ati-bug296856.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xorg-x11-driver-video.spec ++++++ --- /var/tmp/diff_new_pack.x27705/_old 2007-08-20 17:44:11.000000000 +0200 +++ /var/tmp/diff_new_pack.x27705/_new 2007-08-20 17:44:11.000000000 +0200 @@ -14,7 +14,7 @@ BuildRequires: Mesa-devel libdrm-devel pkgconfig xorg-x11-proto-devel xorg-x11-server-sdk URL: http://xorg.freedesktop.org/ Version: 7.2 -Release: 156 +Release: 158 License: X11/MIT BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: System/X11/Servers/XF86_4 @@ -93,6 +93,7 @@ Patch36: xf86-video-intel-xvmc_i915_i945.diff Patch37: xf86-video-ati-AGPFastWrite-risk-reduction.diff Patch38: xf86-video-intel-xvmc_i915_i945-1.diff +Patch39: xf86-video-ati-bug296856.diff %description This package contains X.Org video drivers. @@ -125,6 +126,7 @@ %patch31 -p0 %patch34 -p1 %patch37 -p1 +%patch39 -p1 popd pushd xf86-video-nv-*/src %patch3 -p6 @@ -212,6 +214,10 @@ %{_mandir}/man4/* %changelog +* Mon Aug 20 2007 - sndirsch@suse.de +- xf86-video-ati-bug296856.diff: + * set default virtualX and virtualY to max resolution that + display supports (Bug #296856) * Fri Aug 17 2007 - sndirsch@suse.de - savage 2.1.3 * Strip ^M's out of savage_driver.h ++++++ xf86-video-ati-bug296856.diff ++++++ diff --git a/src/radeon_modes.c b/src/radeon_modes.c index 1a63971..bd006e7 100644 --- a/src/radeon_modes.c +++ b/src/radeon_modes.c @@ -300,6 +300,8 @@ int RADEONValidateDDCModes(ScrnInfoPtr pScrn1, char **ppModeName, DisplayModePtr ddcModes = NULL; int count = 0; int i, width, height; + int maxXRes = 0; + int maxYRes = 0; ScrnInfoPtr pScrn = pScrn1; if (crtc2) @@ -334,13 +336,13 @@ int RADEONValidateDDCModes(ScrnInfoPtr pScrn1, char **ppModeName, p->Flags |= RADEON_USE_RMX; } - maxVirtX = MAX(maxVirtX, p->HDisplay); - maxVirtY = MAX(maxVirtY, p->VDisplay); + maxXRes = maxVirtX = MAX(maxVirtX, p->HDisplay); + maxYRes = maxVirtY = MAX(maxVirtY, p->VDisplay); count++; last = p; } - + /* Match up modes that are specified in the XF86Config file */ if (ppModeName[0]) { DisplayModePtr next; @@ -378,10 +380,23 @@ int RADEONValidateDDCModes(ScrnInfoPtr pScrn1, char **ppModeName, break; } } + if(!p) + { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR," %dx%d is not supported by the device\n", width, height); + } } } - - /* + /*just for sanity check, if maxVirtX and maxVirtY are not specified, + set max resolution that panel support for the max virtual dimensions + */ + if ((!maxVirtX) || (!maxVirtY)) + { + maxVirtX = maxXRes; + maxVirtY = maxYRes; + } + + + /* * Add remaining DDC modes if they're smaller than the user * specified modes */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org