diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 19:08:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 19:08:24 +0000 |
commit | f1383d2d04a9e6ec1da4df59ac0ff1478bb10f9b (patch) | |
tree | 512b51f4e326e33ded20210f85a3a55fcc606db9 /sys/arch/hp300/dev | |
parent | 1b439ba33ce246b10f77ec8ccd4790e890966526 (diff) |
Add an unpack_attr function to struct wsdisplay_emulops, to match the
existing alloc_attr function. This allows rasops_unpack_attr to be kept
private to rasops, yet available to the screen drivers.
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/diofb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/diofb.c b/sys/arch/hp300/dev/diofb.c index 2716ff48d48..908e1771c28 100644 --- a/sys/arch/hp300/dev/diofb.c +++ b/sys/arch/hp300/dev/diofb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diofb.c,v 1.15 2006/11/29 12:13:54 miod Exp $ */ +/* $OpenBSD: diofb.c,v 1.16 2006/11/29 19:08:19 miod Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat @@ -377,7 +377,7 @@ diofb_erasecols(void *cookie, int row, int col, int num, long attr) int fg, bg; int snum, scol, srow; - rasops_unpack_attr(attr, &fg, &bg, NULL); + ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL); snum = num * ri->ri_font->fontwidth; scol = col * ri->ri_font->fontwidth + ri->ri_xorigin; @@ -401,7 +401,7 @@ diofb_eraserows(void *cookie, int row, int num, long attr) int srow, snum; int rc; - rasops_unpack_attr(attr, &fg, &bg, NULL); + ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL); bg ^= 0xff; if (num == ri->ri_rows && (ri->ri_flg & RI_FULLCLEAR)) { |