scmouse.c (56043) | scmouse.c (56328) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/syscons/scmouse.c 56043 2000-01-15 15:25:43Z yokota $ | 26 * $FreeBSD: head/sys/dev/syscons/scmouse.c 56328 2000-01-20 13:21:47Z yokota $ |
27 */ 28 29#include "sc.h" 30#include "opt_syscons.h" 31 32#if NSC > 0 33 34#include <limits.h> --- 839 unchanged lines hidden (view full) --- 874 if (mouse->u.mouse_char < 0) { 875 mouse->u.mouse_char = scp->sc->mouse_char; 876 } else { 877 if (mouse->u.mouse_char >= UCHAR_MAX - 4) 878 return EINVAL; 879 s = spltty(); 880 sc_remove_all_mouse(scp->sc); 881#ifndef SC_NO_FONT_LOADING | 27 */ 28 29#include "sc.h" 30#include "opt_syscons.h" 31 32#if NSC > 0 33 34#include <limits.h> --- 839 unchanged lines hidden (view full) --- 874 if (mouse->u.mouse_char < 0) { 875 mouse->u.mouse_char = scp->sc->mouse_char; 876 } else { 877 if (mouse->u.mouse_char >= UCHAR_MAX - 4) 878 return EINVAL; 879 s = spltty(); 880 sc_remove_all_mouse(scp->sc); 881#ifndef SC_NO_FONT_LOADING |
882 if (ISTEXTSC(cur_scp) && (cur_scp->font_size != FONT_NONE)) | 882 if (ISTEXTSC(cur_scp) && (cur_scp->font != NULL)) |
883 sc_load_font(cur_scp, 0, cur_scp->font_size, cur_scp->font, 884 cur_scp->sc->mouse_char, 4); 885#endif 886 scp->sc->mouse_char = mouse->u.mouse_char; 887 splx(s); 888 } 889 break; 890 --- 13 unchanged lines hidden --- | 883 sc_load_font(cur_scp, 0, cur_scp->font_size, cur_scp->font, 884 cur_scp->sc->mouse_char, 4); 885#endif 886 scp->sc->mouse_char = mouse->u.mouse_char; 887 splx(s); 888 } 889 break; 890 --- 13 unchanged lines hidden --- |