summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pcmcia/cfxga.c5
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;