patch-2.4.0-test10 linux/drivers/video/clgenfb.c

Next file: linux/drivers/video/controlfb.c
Previous file: linux/drivers/usb/wacom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/drivers/video/clgenfb.c linux/drivers/video/clgenfb.c
@@ -997,10 +997,10 @@
 		vsync *= 2;
 		vback *= 2;
 	} else if (_par->var.vmode & FB_VMODE_INTERLACED) {
-		yres = ++yres / 2;
-		vfront = ++vfront / 2;
-		vsync = ++vsync / 2;
-		vback = ++vback / 2;
+		yres = (yres + 1) / 2;
+		vfront = (vfront + 1) / 2;
+		vsync = (vsync + 1) / 2;
+		vback = (vback + 1) / 2;
 	}
 	_par->HorizRes = xres;
 	_par->HorizTotal = (xres + hfront + hsync + hback) / 8 - 5;

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