diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-01-11 15:27:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-01-11 15:27:33 +0000 |
commit | 891ebaa99d35c349cc9a96ece0b9f25654289ab4 (patch) | |
tree | 254352b4b17b5433e251cec8bcfc80eb536c60e2 /sys/arch/sparc | |
parent | a9905c507d776caf9cfed76745385a4f128a5510 (diff) |
Some frame buffer fcode do not fill window-top and window-left put
nevertheless provide them; cope with zero values.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/fb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c index 7a055f38051..4844d3779c6 100644 --- a/sys/arch/sparc/dev/fb.c +++ b/sys/arch/sparc/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.45 2009/01/04 20:32:55 miod Exp $ */ +/* $OpenBSD: fb.c,v 1.46 2009/01/11 15:27:31 miod Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -369,6 +369,9 @@ fbwscons_init(struct sunfb *sf, int isconsole) * 80x34 console window. */ fw = 12; fh = 22; + wt = 0; wl = 0; + } + if (wt == 0 || wl == 0) { ri->ri_flg |= RI_CENTER; /* |