From 43111ba8b711c4b59ef78537a8605f599b9721d8 Mon Sep 17 00:00:00 2001 From: nyan Date: Mon, 21 Jul 2003 13:04:54 +0000 Subject: Use the clear function provided by the video adapter driver. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) --- sys/dev/syscons/fire/fire_saver.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/dev/syscons/fire') diff --git a/sys/dev/syscons/fire/fire_saver.c b/sys/dev/syscons/fire/fire_saver.c index 2cdee0b..0bc031c 100644 --- a/sys/dev/syscons/fire/fire_saver.c +++ b/sys/dev/syscons/fire/fire_saver.c @@ -105,7 +105,7 @@ fire_update(video_adapter_t *adp) static int fire_saver(video_adapter_t *adp, int blank) { - int i, pl; + int pl; if (blank) { /* switch to graphics mode */ @@ -118,10 +118,7 @@ fire_saver(video_adapter_t *adp, int blank) banksize = adp->va_window_size; bpsl = adp->va_line_width; splx(pl); - for (i = 0; i < bpsl * scrh; i += banksize) { - set_origin(adp, i); - bzero(vid, banksize); - } + (*vidsw[adp->va_index]->clear)(adp); } fire_update(adp); } else { -- cgit v1.1