changeset 2136:f13d61fde30d

Fixed bug of FP register writing
author nick
date Mon, 08 Oct 2001 09:48:07 +0000
parents fcf5bd49c68f
children d756279ea665
files drivers/radeon/radeonfb.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/radeon/radeonfb.c	Mon Oct 08 09:23:33 2001 +0000
+++ b/drivers/radeon/radeonfb.c	Mon Oct 08 09:48:07 2001 +0000
@@ -3248,6 +3248,7 @@
 	to be set before changing CRTC_EXT register.
 	Otherwise we may get a blank screen.
 	*****/
+	int prim_mon;
 RTRACE("radeonfb: radeon_write_mode is called\n"); 
 	if(DUAL_MONITOR(rinfo))	{
 		radeon_write_crtc2_regs(rinfo,mode);
@@ -3256,7 +3257,8 @@
 	radeon_write_common_regs(rinfo,mode);
 	radeon_write_dda_regs(rinfo,mode);
 	radeon_write_crtc_regs(rinfo,mode);
-	if(rinfo->crtDispType == MT_DFP || rinfo->crtDispType == MT_LCD) {
+	prim_mon = PRIMARY_MONITOR(rinfo);
+	if(prim_mon == MT_DFP || prim_mon == MT_LCD) {
 		radeon_write_fp_regs(rinfo,mode);
 	}
 	radeon_write_pll_regs(rinfo,mode);