patch-2.4.23 linux-2.4.23/drivers/video/aty/mach64_cursor.c

Next file: linux-2.4.23/drivers/video/aty/mach64_gx.c
Previous file: linux-2.4.23/drivers/video/aty/mach64_ct.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/video/aty/mach64_cursor.c linux-2.4.23/drivers/video/aty/mach64_cursor.c
@@ -144,6 +144,10 @@
 			yoff = 0;
 		}
 
+                /* In doublescan mode, the cursor location also needs to be
+		   doubled. */
+                if (par->crtc.gen_cntl & CRTC_DBL_SCAN_EN)
+		   y<<=1;
 		wait_for_fifo(4, fb);
 		aty_st_le32(CUR_OFFSET, (c->offset >> 3) + (yoff << 1), fb);
 		aty_st_le32(CUR_HORZ_VERT_OFF,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)