summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/fire
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2003-07-21 13:04:54 +0000
committernyan <nyan@FreeBSD.org>2003-07-21 13:04:54 +0000
commit43111ba8b711c4b59ef78537a8605f599b9721d8 (patch)
tree54cf9d9ea781d1ffe2fd1ccbdbdbbb81db87a567 /sys/dev/syscons/fire
parentab4ffb50537c1b0b66cb690e2f8166a00713bd45 (diff)
downloadFreeBSD-src-43111ba8b711c4b59ef78537a8605f599b9721d8.zip
FreeBSD-src-43111ba8b711c4b59ef78537a8605f599b9721d8.tar.gz
Use the clear function provided by the video adapter driver.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
Diffstat (limited to 'sys/dev/syscons/fire')
-rw-r--r--sys/dev/syscons/fire/fire_saver.c7
1 files changed, 2 insertions, 5 deletions
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 {
OpenPOWER on IntegriCloud