diff options
author | Francisco Jerez <currojerez@gmail.com> | 2008-12-02 23:43:26 +0100 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-12-17 17:16:01 -0200 |
commit | 6e1d29d19b205eac85b2f83de126ba88501e9b74 (patch) | |
tree | 0db1be62352d9c3b1c79174b74fee1e706e714cb /src/smilynx_hw.c | |
parent | 695a6066cfe7ad0e568edc596b8704bb9bf8754f (diff) |
Disable screen centering on mode initialization.
Diffstat (limited to 'src/smilynx_hw.c')
-rw-r--r-- | src/smilynx_hw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/smilynx_hw.c b/src/smilynx_hw.c index 4b6c121..f15a436 100644 --- a/src/smilynx_hw.c +++ b/src/smilynx_hw.c @@ -45,7 +45,7 @@ SMILynx_HWInit(ScrnInfoPtr pScrn) int vgaCRIndex = vgaIOBase + VGA_CRTC_INDEX_OFFSET; int vgaCRData = vgaIOBase + VGA_CRTC_DATA_OFFSET; CARD8 SR17, SR20, SR21, SR22, SR24, SR30, SR31, SR32, SR34, - SR66, SR68, SR69, SR6A, SR6B; + SR66, SR68, SR69, SR6A, SR6B, CR9E; ENTER(); @@ -63,6 +63,7 @@ SMILynx_HWInit(ScrnInfoPtr pScrn) SR69 = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX,VGA_SEQ_DATA,0x69); SR6A = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX,VGA_SEQ_DATA,0x6A); SR6B = VGAIN8_INDEX(pSmi, VGA_SEQ_INDEX,VGA_SEQ_DATA,0x6B); + CR9E = VGAIN8_INDEX(pSmi, vgaCRIndex,vgaCRData,0x9E); if (pSmi->PCIBurst) { SR17 |= 0x20; @@ -108,6 +109,9 @@ SMILynx_HWInit(ScrnInfoPtr pScrn) SR34 |= 0x80; } + /* Disable Vertical Expansion/Vertical Centering/Horizontal Centering */ + CR9E &= ~0x7; + /* Program MCLK */ if (pSmi->MCLK > 0) SMI_CommonCalcClock(pScrn->scrnIndex, pSmi->MCLK, @@ -150,6 +154,7 @@ SMILynx_HWInit(ScrnInfoPtr pScrn) VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX,VGA_SEQ_DATA,0xA0, 0x00); VGAOUT8_INDEX(pSmi, vgaCRIndex, vgaCRData, 0x33, 0x00); VGAOUT8_INDEX(pSmi, vgaCRIndex, vgaCRData, 0x3A, 0x00); + VGAOUT8_INDEX(pSmi, vgaCRIndex, vgaCRData,0x9E, CR9E); LEAVE(TRUE); } |