aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-19 14:58:37 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-19 14:58:37 +0100
commita446b7d8818d41f89d916d974104a26d3ba52b48 (patch)
tree962c8547a891be56c02e1e866ecfc8ab12427b39
parentbb9e70f847a290973945665d8abe717b9e2a18f8 (diff)
downloadsyslinux-a446b7d8818d41f89d916d974104a26d3ba52b48.tar.gz
syslinux-a446b7d8818d41f89d916d974104a26d3ba52b48.tar.xz
syslinux-a446b7d8818d41f89d916d974104a26d3ba52b48.zip
ansi: partially revert 937f816addb214ca4c8c1ce977e0357eafa8c617
Commit ("ansi: Improve EFI console support") broke writing to the display under BIOS in an attempt to get things working under EFI. Since the 'cols' and 'rows' arguments aren't used by the EFI console code, revert that chunk of the commit to restore the BIOS functionality. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--com32/lib/sys/ansicon_write.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/com32/lib/sys/ansicon_write.c b/com32/lib/sys/ansicon_write.c
index 74add717..f0d06338 100644
--- a/com32/lib/sys/ansicon_write.c
+++ b/com32/lib/sys/ansicon_write.c
@@ -171,11 +171,7 @@ static void ansicon_scroll_up(const struct term_state *st)
{
uint8_t rows, cols, attribute;
- /*
- * Earlier code set ti.cols to 1 causing console output one char
- * per line.
- */
- cols = 1;
+ cols = ti.cols - 1;
rows = ti.rows - 1;
attribute = ansicon_attribute(st);