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
- Lines: 15
- Date:
Mon Oct 16 13:36:08 2000
- Orig file:
v2.4.0-test9/linux/drivers/video/clgenfb.c
- Orig date:
Fri Aug 4 18:06:34 2000
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)