diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 19:11:18 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 19:11:18 +0000 |
commit | 50ee386b64c347a1453fc676e2725e0613e8c24a (patch) | |
tree | f9907f64ea3f674ebdfb026d21947be5b588ed6f /sys/dev/ic/vga.c | |
parent | f1383d2d04a9e6ec1da4df59ac0ff1478bb10f9b (diff) |
Change the getchar wsdisplay_accessops function to not return a
display-dependent value, but instead fill a structure with the chaarcter
and a valid attribute, suitable for use with unpack_attr.
Adapt the wsmoused code to these changes, and remove all knowledge of
the text-mode style pc video attributes in it.
This will eventually allow wsmoused to be used on non-pcdisplay devices.
Diffstat (limited to 'sys/dev/ic/vga.c')
-rw-r--r-- | sys/dev/ic/vga.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index d6a58b4b81d..a1560921ecc 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga.c,v 1.41 2006/11/29 19:08:22 miod Exp $ */ +/* $OpenBSD: vga.c,v 1.42 2006/11/29 19:11:15 miod Exp $ */ /* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */ /* @@ -238,7 +238,7 @@ int vga_show_screen(void *, void *, int, int vga_load_font(void *, void *, struct wsdisplay_font *); void vga_scrollback(void *, void *, int); void vga_burner(void *v, u_int on, u_int flags); -u_int16_t vga_getchar(void *, int, int); +int vga_getchar(void *, int, int, struct wsdisplay_charcell *); void vga_doswitch(struct vga_config *); @@ -1319,14 +1319,15 @@ vga_burner(v, on, flags) splx(s); } -u_int16_t -vga_getchar(c, row, col) +int +vga_getchar(c, row, col, cell) void *c; int row, col; + struct wsdisplay_charcell *cell; { struct vga_config *vc = c; - return (pcdisplay_getchar(vc->active, row, col)); + return (pcdisplay_getchar(vc->active, row, col, cell)); } struct cfdriver vga_cd = { |