diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-08-04 19:34:22 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-08-04 19:34:22 +0000 |
commit | c533ac154142808a22518500d8c454f914c2401a (patch) | |
tree | f8cb8f6ea92ca600fe5eaf2edf7aa6500a30eed8 /driver | |
parent | 7573943df796ae83ddb14ac168fe296540d15418 (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.c | 2 |
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); |