Commit 46aa3dde authored by prspkt's avatar prspkt Committed by Natanael Copa
Browse files

main/xf86-video-s3virge: rebuild against xorg-video-abi 24.0

Use https
parent 5a241e80
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-s3virge
pkgver=1.10.7
pkgrel=3
pkgrel=4
pkgdesc="S3 ViRGE video driver"
url="http://xorg.freedesktop.org/"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libxi-dev util-macros xorgproto"
source="http://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
source="https://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
check-max-value.patch
"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
......@@ -33,4 +33,6 @@ package() {
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="bbeb3af1558eeb25768ec86e14687d442d54046913af6f4f4eb49c0b9641377b0d6f0e85629b16e46db07adb2358053cbfbe7b366d0cb9a817a011a1c7703e57 xf86-video-s3virge-1.10.7.tar.bz2"
sha512sums="bbeb3af1558eeb25768ec86e14687d442d54046913af6f4f4eb49c0b9641377b0d6f0e85629b16e46db07adb2358053cbfbe7b366d0cb9a817a011a1c7703e57 xf86-video-s3virge-1.10.7.tar.bz2
af7fdc0f850103fb9e8631c1b26b1eb6117eac83b76a9d575b33affeb55985ffe9f61c1c7dcb4c7b00656edfc5df4c2d4c75e56f2dd4c2112dedf654564ff259 check-max-value.patch"
--- a/src/s3v_driver.c
+++ b/src/s3v_driver.c
@@ -1212,8 +1212,6 @@
/* todo - The virge limit is 2048 vertical & horizontal */
/* pixels, not clock register settings. */
/* true for all ViRGE? */
- pScrn->maxHValue = 2048;
- pScrn->maxVValue = 2048;
/* Lower depths default to config file */
pScrn->virtualX = pScrn->display->virtualX;
@@ -2566,6 +2564,12 @@
if ((pScrn->bitsPerPixel + 7)/8 * mode->HDisplay > 4095)
return MODE_VIRTUAL_X;
+ if (mode->HTotal > 2048)
+ return MODE_BAD_HVALUE;
+
+ if (mode->VTotal > 2048)
+ return MODE_BAD_VVALUE;
+
return MODE_OK;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment