mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-27 10:48:52 +00:00
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:
committed by
Alex Deucher
parent
547fef4c63
commit
80eee85693
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user