summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-01-11 15:27:33 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-01-11 15:27:33 +0000
commit891ebaa99d35c349cc9a96ece0b9f25654289ab4 (patch)
tree254352b4b17b5433e251cec8bcfc80eb536c60e2 /sys/arch/sparc
parenta9905c507d776caf9cfed76745385a4f128a5510 (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.c5
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;
/*