Hello community, here is the log from the commit of package xf86-video-mga for openSUSE:Factory checked in at 2016-07-14 09:44:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xf86-video-mga (Old) and /work/SRC/openSUSE:Factory/.xf86-video-mga.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xf86-video-mga" Changes: -------- --- /work/SRC/openSUSE:Factory/xf86-video-mga/xf86-video-mga.changes 2015-02-24 13:06:55.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.xf86-video-mga.new/xf86-video-mga.changes 2016-07-14 09:44:16.000000000 +0200 @@ -1,0 +2,7 @@ +Tue Jul 5 13:29:29 UTC 2016 - [email protected] + +- u_shadow-Calulate-the-shadow-buffer-size-correctly.patch + * Calculate the shadow buffer size correctly to avoid the + screen being cut off (boo#987670). + +------------------------------------------------------------------- New: ---- u_shadow-Calulate-the-shadow-buffer-size-correctly.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xf86-video-mga.spec ++++++ --- /var/tmp/diff_new_pack.F7KKUY/_old 2016-07-14 09:44:17.000000000 +0200 +++ /var/tmp/diff_new_pack.F7KKUY/_new 2016-07-14 09:44:17.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package xf86-video-mga # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ Patch1: u_Fix-compiler-warnings.patch Patch2: u_Fix-crash-when-EXA-accel-mode-is-enabled.patch Patch3: u_EXA-Fix-UploadToScreen.patch +Patch4: u_shadow-Calulate-the-shadow-buffer-size-correctly.patch BuildRequires: Mesa-devel BuildRequires: pkg-config BuildRequires: pkgconfig(fontsproto) @@ -70,6 +71,7 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %configure ++++++ u_shadow-Calulate-the-shadow-buffer-size-correctly.patch ++++++ From: Egbert Eich <[email protected]> Date: Tue Jul 5 15:18:26 2016 +0200 Subject: [PATCH]shadow: Calulate the shadow buffer size correctly Patch-mainline: to be upstreamed Git-commit: e9ff02d4037cd4c693fdef3dacc1bb4fc282455c References: boo#987670 Signed-off-by: Egbert Eich <[email protected]> The 'width' used for the calculation of the shadow buffer is not the width of the screen but the framebuffer stride in of the shadow buffer in pScrn->displayWidth. This fixes a cut-off lower border. Signed-off-by: Egbert Eich <[email protected]> Found-by: Oliver Schweigert <[email protected]> --- src/mga_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mga_driver.c b/src/mga_driver.c index 1a83836..3b8e890 100644 --- a/src/mga_driver.c +++ b/src/mga_driver.c @@ -3280,7 +3280,7 @@ MGAScreenInit(SCREEN_INIT_ARGS_DECL) } if(pMga->ShadowFB) { - pMga->ShadowPtr = (unsigned char *)xnfcalloc(1, width * height * + pMga->ShadowPtr = (unsigned char *)xnfcalloc(1, pScrn->displayWidth * height * (pScrn->bitsPerPixel >> 3)); FBStart = pMga->ShadowPtr; } else {
