summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ast_mode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ast_mode.c b/src/ast_mode.c
index 2b5ebde..28c863d 100644
--- a/src/ast_mode.c
+++ b/src/ast_mode.c
@@ -465,6 +465,9 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
vSetSyncReg(pScrn, mode, &vgamodeinfo);
bSetDACReg(pScrn, mode, &vgamodeinfo);
+ /* clear video buffer to avoid display noise */
+ memset(pAST->FBVirtualAddr, 0x00, pAST->VideoModeInfo.ScreenPitch*pAST->VideoModeInfo.ScreenHeight);
+
vAST1000DisplayOn(pScrn);
}