diff options
Diffstat (limited to 'src/ast_mode.c')
-rw-r--r-- | src/ast_mode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ast_mode.c b/src/ast_mode.c index de6f4f1..964fe7a 100644 --- a/src/ast_mode.c +++ b/src/ast_mode.c @@ -413,8 +413,8 @@ VBIOS_DAC_INFO DAC_VGA[] = { /* extern. function */ extern void vASTOpenKey(ScrnInfoPtr pScrn); extern Bool bASTRegInit(ScrnInfoPtr pScrn); -extern void vAST1000DisplayOn(ASTRecPtr pAST); -extern void vAST1000DisplayOff(ASTRecPtr pAST); +extern void vAST1000DisplayOn(ScrnInfoPtr pScrn); +extern void vAST1000DisplayOff(ScrnInfoPtr pScrn); extern Bool bEnable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST); extern void vDisable2D(ScrnInfoPtr pScrn, ASTRecPtr pAST); @@ -465,6 +465,8 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) vASTOpenKey(pScrn); bASTRegInit(pScrn); + vAST1000DisplayOff(pScrn); + vSetStdReg(pScrn, mode, &vgamodeinfo); vSetCRTCReg(pScrn, mode, &vgamodeinfo); vSetOffsetReg(pScrn, mode, &vgamodeinfo); @@ -472,6 +474,8 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) vSetExtReg(pScrn, mode, &vgamodeinfo); vSetSyncReg(pScrn, mode, &vgamodeinfo); bSetDACReg(pScrn, mode, &vgamodeinfo); + + vAST1000DisplayOn(pScrn); } /* post set mode */ @@ -491,7 +495,6 @@ ASTSetMode(ScrnInfoPtr pScrn, DisplayModePtr mode) } } #endif - vAST1000DisplayOn(pAST); return (TRUE); } |