summaryrefslogtreecommitdiffstats
path: root/sys/dev/rasops/rasops.c
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2002-08-12 02:31:01 +0000
committerjason <jason@openbsd.org>2002-08-12 02:31:01 +0000
commita67978447e56f665cb25f9f180e22553fe28c54d (patch)
tree421eb9909941d41ef5982eb0786a5ddd376c6f67 /sys/dev/rasops/rasops.c
parentAdd support for REL type relocations, all currently supported arch (diff)
downloadwireguard-openbsd-a67978447e56f665cb25f9f180e22553fe28c54d.tar.xz
wireguard-openbsd-a67978447e56f665cb25f9f180e22553fe28c54d.zip
Add a callback routine for when the cursor position is updated (this allows
for updating prom cursor locations).
Diffstat (limited to 'sys/dev/rasops/rasops.c')
-rw-r--r--sys/dev/rasops/rasops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c
index 489c2aff9f2..f0f02c6f81b 100644
--- a/sys/dev/rasops/rasops.c
+++ b/sys/dev/rasops/rasops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rasops.c,v 1.7 2002/07/27 22:17:49 miod Exp $ */
+/* $OpenBSD: rasops.c,v 1.8 2002/08/12 02:31:01 jason Exp $ */
/* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */
/*-
@@ -258,6 +258,7 @@ rasops_reconfig(ri, wantrows, wantcols)
ri->ri_ops.eraserows = rasops_eraserows;
ri->ri_ops.cursor = rasops_cursor;
ri->ri_do_cursor = rasops_do_cursor;
+ ri->ri_updatecursor = NULL;
if (ri->ri_depth < 8 || (ri->ri_flg & RI_FORCEMONO) != 0) {
ri->ri_ops.alloc_attr = rasops_alloc_mattr;
@@ -597,6 +598,9 @@ rasops_cursor(cookie, on, row, col)
ri->ri_crow = row;
ri->ri_ccol = col;
+ if (ri->ri_updatecursor != NULL)
+ ri->ri_updatecursor(ri);
+
if (on) {
ri->ri_flg |= RI_CURSOR;
#ifdef RASOPS_CLIPPING