Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic remove all traces when a font is removed



details:   https://anonhg.NetBSD.org/src/rev/9825d2388669
branches:  trunk
changeset: 514752:9825d2388669
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon Sep 10 07:29:54 2001 +0000

description:
remove all traces when a font is removed

diffstat:

 sys/dev/ic/vga.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 36d467554203 -r 9825d2388669 sys/dev/ic/vga.c
--- a/sys/dev/ic/vga.c  Mon Sep 10 06:34:57 2001 +0000
+++ b/sys/dev/ic/vga.c  Mon Sep 10 07:29:54 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga.c,v 1.40 2001/09/07 17:10:13 drochner Exp $ */
+/* $NetBSD: vga.c,v 1.41 2001/09/10 07:29:54 drochner Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -439,6 +439,10 @@
 #endif
        if (f->usecount == 0 && f != &vga_builtinfont) {
                TAILQ_REMOVE(&vc->vc_fontlist, f, next);
+               if (f->slot != -1) {
+                       KASSERT(vc->vc_fonts[f->slot] == f);
+                       vc->vc_fonts[f->slot] = 0;
+               }
                wsfont_unlock(f->cookie);
 #ifdef VGA_CONSOLE_SCREENTYPE
                if (f != &vga_consolefont)



Home | Main Index | Thread Index | Old Index