summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-08-05 09:57:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-08-05 09:57:25 +0000
commit8a82d4c8e145fb0d9eded17d545af66b4c6bcfc3 (patch)
treea274e2c419f71c74e196c1887f6b17f63ff22e56 /sys/arch/hp300
parentc75aa4bf25dd32fe6ecf535cc9ffcf99629820f8 (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.c8
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);