summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-03-05 03:31:27 +0000
committerkato <kato@FreeBSD.org>1998-03-05 03:31:27 +0000
commit8de0a6b2b51f2902edf3c39bcabc35f6793d2627 (patch)
treed2293af8b3c9e3e07fab2161b9429ed9f71b7395
parentf3f529e90a223d414e8c51ec1a1413a50d84045a (diff)
downloadFreeBSD-src-8de0a6b2b51f2902edf3c39bcabc35f6793d2627.zip
FreeBSD-src-8de0a6b2b51f2902edf3c39bcabc35f6793d2627.tar.gz
Fixed mistakenly merged part.
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
-rw-r--r--sys/pc98/pc98/syscons.c76
1 files changed, 25 insertions, 51 deletions
diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c
index f3c90c7..86ef627 100644
--- a/sys/pc98/pc98/syscons.c
+++ b/sys/pc98/pc98/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.78 1998/02/13 16:59:01 kato Exp $
+ * $Id: syscons.c,v 1.79 1998/02/14 08:39:35 kato Exp $
*/
#include "sc.h"
@@ -4043,6 +4043,28 @@ scinit(void)
#ifdef PC98
scr_map[0x5c] = (u_char)0xfc; /* for backslash */
#endif
+
+#ifndef PC98
+ /* Save font and palette if VGA */
+ if (crtc_vga) {
+ if (fonts_loaded & FONT_16) {
+ copy_font(LOAD, FONT_16, font_16);
+ } else {
+ copy_font(SAVE, FONT_16, font_16);
+ fonts_loaded = FONT_16;
+ }
+ save_palette();
+ set_destructive_cursor(console[0]);
+ }
+
+#ifdef SC_SPLASH_SCREEN
+ /*
+ * Now put up a graphics image, and maybe cycle a
+ * couble of palette entries for simple animation.
+ */
+ toggle_splash_screen(cur_console);
+#endif
+#endif
}
static void
@@ -4876,32 +4898,6 @@ next_code:
goto next_code;
}
-#ifdef SC_SPLASH_SCREEN
-static void
-toggle_splash_screen(scr_stat *scp)
-{
- static int toggle = 0;
- static u_char save_mode;
- int s = splhigh();
-
- if (toggle) {
- scp->mode = save_mode;
- scp->status &= ~UNKNOWN_MODE;
- set_mode(scp);
- toggle = 0;
- }
- else {
- save_mode = scp->mode;
- scp->mode = M_VGA_CG320;
- scp->status |= UNKNOWN_MODE;
- set_mode(scp);
- /* load image */
- toggle = 1;
- }
- splx(s);
-}
-#endif
-
int
scmmap(dev_t dev, int offset, int nprot)
{
@@ -5814,9 +5810,9 @@ draw_mouse_image(scr_stat *scp)
(*(scp->mouse_pos + scp->xsize + 1) & 0xff00) | (SC_MOUSE_CHAR + 3);
}
#endif
- mark_for_update(scp, scp->mouse_oldpos - scp->scr_buf);
+ mark_for_update(scp, scp->mouse_pos - scp->scr_buf);
#ifndef PC98
- mark_for_update(scp, scp->mouse_oldpos + scp->xsize + 1 - scp->scr_buf);
+ mark_for_update(scp, scp->mouse_pos + scp->xsize + 1 - scp->scr_buf);
#endif
}
@@ -5950,28 +5946,6 @@ do_bell(scr_stat *scp, int pitch, int duration)
pitch *= 2;
sysbeep(pitch, duration);
}
-
-#ifndef PC98
- /* Save font and palette if VGA */
- if (crtc_vga) {
- if (fonts_loaded & FONT_16) {
- copy_font(LOAD, FONT_16, font_16);
- } else {
- copy_font(SAVE, FONT_16, font_16);
- fonts_loaded = FONT_16;
- }
- save_palette();
- set_destructive_cursor(console[0]);
- }
-
-#ifdef SC_SPLASH_SCREEN
- /*
- * Now put up a graphics image, and maybe cycle a
- * couble of palette entries for simple animation.
- */
- toggle_splash_screen(cur_console);
-#endif
-#endif
}
static void
OpenPOWER on IntegriCloud