[PATCH] trident_video.c

Jeff Chua <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
The following patch is needed in order to compile trident_video.c with 
gcc-2.95.3 ...

Thanks,
Jeff

--- xfree86/xc/programs/Xserver/hw/xfree86/drivers/trident/trident_video.c.org	2005-12-09 12:05:15 +0800
+++ xfree86/xc/programs/Xserver/hw/xfree86/drivers/trident/trident_video.c	2005-12-09 12:05:43 +0800
@@ -666,10 +666,11 @@
      OUTW(vgaIOBase + 4, ((width<<1) & 0xff00)      | 0x91);
      OUTW(vgaIOBase + 4, ((offset) & 0xff) << 8     | 0x92);
      OUTW(vgaIOBase + 4, ((offset) & 0xff00)        | 0x93);
-    if (pTrident->Chipset >= CYBER9397)
+    if (pTrident->Chipset >= CYBER9397) {
      	OUTW(vgaIOBase + 4, ((offset) & 0x0f0000) >> 8 | 0x94);
-    else
+    } else {
      	OUTW(vgaIOBase + 4, ((offset) & 0x070000) >> 8 | 0x94);
+    }

      /* Horizontal Zoom */
      if (pTrident->videoFlags & VID_ZOOM_INV) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.