diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-27 00:29:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-27 00:29:03 +0000 |
commit | 8d7ed2815ac6c841208136e397d572fe9b3bd101 (patch) | |
tree | 6112f1bc48b0f89b312935e09fa1e8989612193a /sys | |
parent | 42e5e4db8367ad678c0bc597916e3cee8f65387b (diff) |
Always update cfxga_scr emulops field when creating a new screen, in case
the card was removed and then reinserted.
XXX It's still ugly, a better way to handle this is in the works.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pcmcia/cfxga.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pcmcia/cfxga.c b/sys/dev/pcmcia/cfxga.c index ee42acd2c31..89f56de81c5 100644 --- a/sys/dev/pcmcia/cfxga.c +++ b/sys/dev/pcmcia/cfxga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfxga.c,v 1.4 2006/11/26 23:31:14 miod Exp $ */ +/* $OpenBSD: cfxga.c,v 1.5 2006/11/27 00:29:02 miod Exp $ */ /* * Copyright (c) 2005, 2006, Matthieu Herrb and Miodrag Vallat @@ -453,11 +453,12 @@ cfxga_alloc_screen(void *v, const struct wsscreen_descr *type, void **cookiep, cfxga_scr.nrows = ri->ri_rows; cfxga_scr.ncols = ri->ri_cols; cfxga_scr.capabilities = ri->ri_caps; - cfxga_scr.textops = &ri->ri_ops; } else { rasops_init(ri, cfxga_scr.nrows, cfxga_scr.ncols); } + cfxga_scr.textops = &ri->ri_ops; + scr->scr_ops = ri->ri_ops; ri->ri_ops.copycols = cfxga_copycols; ri->ri_ops.copyrows = cfxga_copyrows; |