summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/fb.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-18 17:02:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-18 17:02:27 +0000
commit9f47eedfae033ee1423044397396bd0d13711d4f (patch)
treef2e5e3b4b6cf5b38ad06e833149c20147b976ea1 /sys/arch/sparc/dev/fb.c
parent02ef75437b52173903c3ba96766eeb81e36ea256 (diff)
fix fb_setsize() to set width/height for P4 frame buffers
now rconsole works on all P4 frame buffers
Diffstat (limited to 'sys/arch/sparc/dev/fb.c')
-rw-r--r--sys/arch/sparc/dev/fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index f61b94560bb..ade9db9dbe6 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -139,6 +139,8 @@ fb_setsize(fb, depth, def_width, def_height, node, bustype)
*/
switch (bustype) {
case BUS_PFOUR:
+ fb->fb_type.fb_width = def_width;
+ fb->fb_type.fb_height = def_height;
fb->fb_linebytes = (fb->fb_type.fb_width * depth) / 8;
break;
case BUS_VME16: