diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-05 09:57:25 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-05 09:57:25 +0000 |
commit | 8a82d4c8e145fb0d9eded17d545af66b4c6bcfc3 (patch) | |
tree | a274e2c419f71c74e196c1887f6b17f63ff22e56 /sys/arch/hp300 | |
parent | c75aa4bf25dd32fe6ecf535cc9ffcf99629820f8 (diff) |
Prefer rasops {copy,erase}rows routines for non-accelerated 1bpp frame buffers,
as they are slightly faster.
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r-- | sys/arch/hp300/dev/diofb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/diofb.c b/sys/arch/hp300/dev/diofb.c index 1464f677b6a..8c15b840e04 100644 --- a/sys/arch/hp300/dev/diofb.c +++ b/sys/arch/hp300/dev/diofb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diofb.c,v 1.11 2006/06/30 15:15:20 miod Exp $ */ +/* $OpenBSD: diofb.c,v 1.12 2006/08/05 09:57:24 miod Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat @@ -199,9 +199,11 @@ diofb_fbsetup(struct diofb *fb) } ri->ri_ops.copycols = diofb_copycols; - ri->ri_ops.copyrows = diofb_copyrows; ri->ri_ops.erasecols = diofb_erasecols; - ri->ri_ops.eraserows = diofb_eraserows; + if (ri->ri_depth != 1) { + ri->ri_ops.copyrows = diofb_copyrows; + ri->ri_ops.eraserows = diofb_eraserows; + } /* Clear entire display, including non visible areas */ (*fb->bmv)(fb, 0, 0, 0, 0, fb->fbwidth, fb->fbheight, RR_CLEAR); |