diff options
author | 2009-01-11 15:27:31 +0000 | |
---|---|---|
committer | 2009-01-11 15:27:31 +0000 | |
commit | 30afeea59a1b9644f9c555abf1694afb23a30da9 (patch) | |
tree | b579746dcf845ec60a9cbb67df59f825873cb6ff | |
parent | Fix pasto in debug message. (diff) | |
download | wireguard-openbsd-30afeea59a1b9644f9c555abf1694afb23a30da9.tar.xz wireguard-openbsd-30afeea59a1b9644f9c555abf1694afb23a30da9.zip |
Some frame buffer fcode do not fill window-top and window-left put
nevertheless provide them; cope with zero values.
-rw-r--r-- | sys/arch/sparc/dev/fb.c | 5 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/fb.c | 5 |
2 files changed, 8 insertions, 2 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; /* 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; /* |