patch-2.2.18 linux/drivers/video/fbcon.c
Next file: linux/drivers/video/macfb.c
Previous file: linux/drivers/video/fbcon-mac.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Sat Oct 28 13:36:59 2000
- Orig file:
v2.2.17/drivers/video/fbcon.c
- Orig date:
Sat Sep 9 18:42:46 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/video/fbcon.c linux/drivers/video/fbcon.c
@@ -1806,12 +1806,13 @@
y += softback_lines;
ret = pos + (conp->vc_cols - x) * 2;
} else if (conp->vc_num == fg_console && softback_lines) {
- unsigned long offset = (pos - softback_curr) / 2;
+ unsigned long offset = pos - softback_curr;
+ if (pos < softback_curr)
+ offset += softback_end - softback_buf;
+ offset /= 2;
x = offset % conp->vc_cols;
y = offset / conp->vc_cols;
- if (pos < softback_curr)
- y += (softback_end - softback_buf) / conp->vc_size_row;
ret = pos + (conp->vc_cols - x) * 2;
if (ret == softback_end)
ret = softback_buf;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)