summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xg47_native_mode.c2
-rw-r--r--src/xgi_driver.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/xg47_native_mode.c b/src/xg47_native_mode.c
index d71f926..c900574 100644
--- a/src/xg47_native_mode.c
+++ b/src/xg47_native_mode.c
@@ -396,7 +396,7 @@ void xg47_mode_restore(ScrnInfoPtr pScrn, vgaRegPtr pVgaReg, XGIRegPtr regs)
uint8_t v3x5_2f;
- vgaHWRestore(pScrn, pVgaReg, VGA_SR_ALL);
+ vgaHWRestore(pScrn, pVgaReg, VGA_SR_MODE);
OUT3CFB(0x0f, regs->gra[0x0f]);
diff --git a/src/xgi_driver.c b/src/xgi_driver.c
index 03bc1af..14596bf 100644
--- a/src/xgi_driver.c
+++ b/src/xgi_driver.c
@@ -1850,6 +1850,7 @@ static void XGIRestore(ScrnInfoPtr pScrn)
vgaRegPtr pVgaReg = &VGAHWPTR(pScrn)->SavedReg;
xg47_mode_restore(pScrn, pVgaReg, pXGIReg);
+ vgaHWRestore(pScrn, pVgaReg, VGA_SR_FONTS);
}
Bool XGIFBManagerInit(ScreenPtr pScreen)