summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/smilynx_crtc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/smilynx_crtc.c b/src/smilynx_crtc.c
index 72e0db2..a8c0a03 100644
--- a/src/smilynx_crtc.c
+++ b/src/smilynx_crtc.c
@@ -866,12 +866,12 @@ SMILynx_CrtcDPMS_crt(xf86CrtcPtr crtc, int mode)
else
reg->SR21 &= ~0x88; /* Enable DAC and color palette RAM */
- VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x21, reg->SR21);
-
/* Wait for vertical retrace */
while (hwp->readST01(hwp) & 0x8) ;
while (!(hwp->readST01(hwp) & 0x8)) ;
+ VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x21, reg->SR21);
+
if(mode == DPMSModeOn){
/* Reload the LUT */
SMILynx_CrtcLoadLUT_crt(crtc);
@@ -895,12 +895,12 @@ SMILynx_CrtcDPMS_lcd(xf86CrtcPtr crtc, int mode)
else
reg->SR31 |= 0x80; /* Enable Virtual Refresh */
- VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x31, reg->SR31);
-
/* Wait for vertical retrace */
while (hwp->readST01(hwp) & 0x8) ;
while (!(hwp->readST01(hwp) & 0x8)) ;
+ VGAOUT8_INDEX(pSmi, VGA_SEQ_INDEX, VGA_SEQ_DATA, 0x31, reg->SR31);
+
LEAVE();
}