summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herb <>2007-10-09 16:17:50 -0400
committerAlex Deucher <alex@botch2.(none)>2007-10-09 16:17:50 -0400
commit80eee856938756e1222526b6c39cee8b5252b409 (patch)
treeb83dc63c07d19cc888d4855664825e615f4724e8
parent547fef4c6382f8a4951c086ee531b804cba31075 (diff)
RADEON: fix console restore on netbsd
Include the mode restore bugfix from monolithic Xorg, that is derived from the version in xsrc which in turn was provided by Matthieu Herb over 3 years ago on the XFree86 lists. Suggested by various developers, hold-back due to the working state in xorg-server 1.1.1. Tracing down the exact change showed that the changed default color depth made this issue a lot more prominent again. Discussed with Eric Anholt.
-rw-r--r--src/radeon_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index ffd48a5..7149b12 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -5326,7 +5326,7 @@ static void RADEONSave(ScrnInfoPtr pScrn)
vgaHWSave(pScrn, &hwp->SavedReg, VGA_SR_MODE); /* Save mode only */
# else
/* Save mode * & fonts & cmap */
- vgaHWSave(pScrn, &hwp->SavedReg, VGA_SR_MODE | VGA_SR_FONTS);
+ vgaHWSave(pScrn, &hwp->SavedReg, VGA_SR_ALL);
# endif
vgaHWLock(hwp);
}
@@ -5418,7 +5418,7 @@ void RADEONRestore(ScrnInfoPtr pScrn)
*/
vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE );
# else
- vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_MODE | VGA_SR_FONTS );
+ vgaHWRestore(pScrn, &hwp->SavedReg, VGA_SR_ALL );
# endif
vgaHWLock(hwp);
}