summaryrefslogtreecommitdiff
path: root/src/savage_vbe.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:28:38 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:28:38 +0000
commit148230e83c55136a893bc7861d2c8d12d1b7dfd8 (patch)
tree11c69c4fc3c48f604f6cfc369a10f6727dfc1142 /src/savage_vbe.c
parent1b535877d4c7045ff4cf45f3e3c00734b61797d2 (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16
Diffstat (limited to 'src/savage_vbe.c')
-rw-r--r--src/savage_vbe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/savage_vbe.c b/src/savage_vbe.c
index f0a0edc..cf8f417 100644
--- a/src/savage_vbe.c
+++ b/src/savage_vbe.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/savage/savage_vbe.c,v 1.12 2002/10/02 20:39:55 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/savage/savage_vbe.c,v 1.14 2003/06/18 16:17:40 eich Exp $ */
#include "savage_driver.h"
#include "savage_vbe.h"
@@ -72,7 +72,7 @@ SavageSetVESAMode( SavagePtr psav, int n, int Refresh )
SavageClearVM86Regs( psav->pInt10 );
psav->pInt10->ax = 0x4f14; /* S3 extensions */
psav->pInt10->bx = 0x0001; /* Set default refresh rate */
- psav->pInt10->cx = n;
+ psav->pInt10->cx = n & 0x3fff;
psav->pInt10->di = Refresh & 0xffff;
xf86ExecX86int10( psav->pInt10 );
@@ -150,6 +150,7 @@ SavageFreeBIOSModeTable( SavagePtr psav, SavageModeTablePtr* ppTable )
xfree( pMode->RefreshRate );
pMode->RefreshRate = NULL;
}
+ pMode++;
}
xfree( *ppTable );