diff options
author | nyan <nyan@FreeBSD.org> | 2003-07-21 13:04:54 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-07-21 13:04:54 +0000 |
commit | 43111ba8b711c4b59ef78537a8605f599b9721d8 (patch) | |
tree | 54cf9d9ea781d1ffe2fd1ccbdbdbbb81db87a567 /sys/dev/syscons/dragon | |
parent | ab4ffb50537c1b0b66cb690e2f8166a00713bd45 (diff) | |
download | FreeBSD-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/dragon')
-rw-r--r-- | sys/dev/syscons/dragon/dragon_saver.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/syscons/dragon/dragon_saver.c b/sys/dev/syscons/dragon/dragon_saver.c index f157e9c..f8fa51b 100644 --- a/sys/dev/syscons/dragon/dragon_saver.c +++ b/sys/dev/syscons/dragon/dragon_saver.c @@ -122,24 +122,6 @@ gdraw(int dx, int dy, int val) } static void -gcls(void) -{ -#ifdef PC98 - outb(0x7c, 0x80); /* GRCG on & TDW mode */ - outb(0x7e, 0); /* tile B */ - outb(0x7e, 0); /* tile R */ - outb(0x7e, 0); /* tile G */ - outb(0x7e, 0); /* tile I */ - - fillw(0, vid, 0x8000); - - outb(0x7c, 0); /* GRCG off */ -#else - bzero(vid, SCRW*SCRH); -#endif -} - -static void dragon_update(video_adapter_t *adp) { static int i, p, q; @@ -153,7 +135,7 @@ dragon_update(video_adapter_t *adp) int tmp; if (curve > CURVE) { - gcls(); + (*vidsw[adp->va_index]->clear)(adp); /* set palette of each curves */ for (tmp = 0; tmp < 3*CURVE; ++tmp) { |