aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-22 13:07:15 +0000
committerhpa <hpa>2004-12-22 13:07:15 +0000
commit24afa3e22a17856083b738d8ed6e3a3c9076979d (patch)
tree3431ceeaf4f252774262246425341f23c8491f83
parentfef30b6f809ea30d650ad369162b4799f2302187 (diff)
downloadsyslinux-24afa3e22a17856083b738d8ed6e3a3c9076979d.tar.gz
syslinux-24afa3e22a17856083b738d8ed6e3a3c9076979d.tar.xz
syslinux-24afa3e22a17856083b738d8ed6e3a3c9076979d.zip
Fix handling of attributes when clearing the screen.
-rw-r--r--com32/lib/sys/ansicon_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/ansicon_write.c b/com32/lib/sys/ansicon_write.c
index 40710876..dbcf7412 100644
--- a/com32/lib/sys/ansicon_write.c
+++ b/com32/lib/sys/ansicon_write.c
@@ -97,7 +97,7 @@ static void ansicon_erase(int x0, int y0, int x1, int y1)
static com32sys_t ireg;
ireg.eax.w[0] = 0x0600; /* Clear window */
- ireg.eax.b[1] = st.attr; /* Fill with current attribute */
+ ireg.ebx.b[1] = st.attr; /* Fill with current attribute */
ireg.ecx.b[0] = x0;
ireg.ecx.b[1] = y0;
ireg.edx.b[0] = x1;