summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-08-04 19:34:22 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-08-04 19:34:22 +0000
commitc533ac154142808a22518500d8c454f914c2401a (patch)
treef8cb8f6ea92ca600fe5eaf2edf7aa6500a30eed8 /driver
parent7573943df796ae83ddb14ac168fe296540d15418 (diff)
Fix crash during resolution change. From debian bug #423485,
by Tormod Volden pointed at by Ryan Freeman. Thanks. Has been in snapshots for a while without complaints.
Diffstat (limited to 'driver')
-rw-r--r--driver/xf86-video-savage/src/savage_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/xf86-video-savage/src/savage_driver.c b/driver/xf86-video-savage/src/savage_driver.c
index 20f1680af..5e1cde5c4 100644
--- a/driver/xf86-video-savage/src/savage_driver.c
+++ b/driver/xf86-video-savage/src/savage_driver.c
@@ -3536,6 +3536,7 @@ static Bool SavageModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
/* do it! */
SavageWriteMode(pScrn, vganew, new, TRUE);
+ pScrn->currentMode = mode;
if (psav->FBStart2nd) {
SavageStreamsOn(pScrn);
@@ -3798,6 +3799,7 @@ static Bool SavageModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
/* do it! */
SavageWriteMode(pScrn, vganew, new, TRUE);
+ pScrn->currentMode = mode;
if (psav->FBStart2nd) {
SavageStreamsOn(pScrn);