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/sparc64 | |
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/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/fb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/fb.c b/sys/arch/sparc64/dev/fb.c index 11fd1bd2b2b..cc06c72ac85 100644 --- a/sys/arch/sparc64/dev/fb.c +++ b/sys/arch/sparc64/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.18 2008/12/27 17:23:01 miod Exp $ */ +/* $OpenBSD: fb.c,v 1.19 2009/01/11 15:27:32 miod Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -220,6 +220,9 @@ fbwscons_init(struct sunfb *sf, int flags, int isconsole) * 80x34 console window. */ fw = 12; fh = 22; + wt = 0; wl = 0; + } + if (wt == 0 || wl == 0) { ri->ri_flg |= RI_CENTER; /* |