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.
This commit is contained in:
Matthieu Herb
2007-10-09 16:17:50 -04:00
committed by Alex Deucher
parent 547fef4c63
commit 80eee85693

View File

@@ -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);
}