Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2017 22:21:36 +0200
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        Bruce Evans <bde@FreeBSD.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, svn-src-head@freebsd.org
Subject:   Re: svn commit: r316977 - head/sys/dev/syscons
Message-ID:  <20170415222136.6c58a00d@thor.intern.walstatt.dynvpn.de>
In-Reply-To: <201704152003.v3FK3o3w002356@repo.freebsd.org>
References:  <201704152003.v3FK3o3w002356@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/JAMg6MZfkRLtgW_8a6nHCI4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am Sat, 15 Apr 2017 20:03:50 +0000 (UTC)
Bruce Evans <bde@FreeBSD.org> schrieb:

> Author: bde
> Date: Sat Apr 15 20:03:50 2017
> New Revision: 316977
> URL: https://svnweb.freebsd.org/changeset/base/316977
>=20
> Log:
>   Add a 10x16 mouse cursor and use it in all graphics (strictly, pixel)
>   modes if the font size is >=3D 14.
>  =20
>   This is the X cursor XC_left_ptr (#68) (glyph #45 in an X cursor font).
>   Also found in vt.  The old 9x13 cursor is the 10x16 one trimmed not very
>   well.
>  =20
>   8x8 fonts need a smaller cursor instead of a larger one, except when
>   the pixel size is small.  Text mode is still limited to width and height
>   1 more than the font (so the 9x13 is already 4 pixels too high for it).
>=20
> Modified:
>   head/sys/dev/syscons/scvgarndr.c
>=20
> Modified: head/sys/dev/syscons/scvgarndr.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/dev/syscons/scvgarndr.c	Sat Apr 15 19:47:50 2017	(r316976)
> +++ head/sys/dev/syscons/scvgarndr.c	Sat Apr 15 20:03:50 2017	(r316977)
> @@ -173,6 +173,14 @@ static const struct mousedata mouse9x13=20
>  	0x0c00, 0x0c00, 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, 0x0000, },
>  	9, 13,
>  };
> +
> +static const struct mousedata mouse10x16 =3D { {
> +	0xc000, 0xa000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
> +	0x8040, 0x83c0, 0x9200, 0xa900, 0xc900, 0x0480, 0x0480, 0x0300, }, {
> +	0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7c00, 0x7e00, 0x7f00,
> +	0x7f80, 0x7c00, 0x6c00, 0x4600, 0x0600, 0x0300, 0x0300, 0x0000, },
> +	10, 16,
> +};
>  #endif
>  #endif
> =20
> @@ -1042,7 +1050,7 @@ draw_pxlmouse_planar(scr_stat *scp, int=20
>  	int i, j, k;
>  	uint8_t m1;
> =20
> -	mdp =3D &mouse9x13;
> +	mdp =3D (scp->font_size < 14) ? &mouse9x13 : &mouse10x16;
>  	line_width =3D scp->sc->adp->va_line_width;
>  	xoff =3D (x - scp->xoff*8)%8;
>  	yoff =3D y - rounddown(y, line_width);
> @@ -1087,7 +1095,7 @@ remove_pxlmouse_planar(scr_stat *scp, in
>  	vm_offset_t p;
>  	int bx, by, i, line_width, xend, xoff, yend, yoff;
> =20
> -	mdp =3D &mouse9x13;
> +	mdp =3D (scp->font_size < 14) ? &mouse9x13 : &mouse10x16;
> =20
>  	/*
>  	 * It is only necessary to remove the mouse image where it overlaps
> @@ -1132,7 +1140,7 @@ vga_pxlmouse_direct(scr_stat *scp, int x
>  	uint8_t  *u8;
>  	int bpp;
> =20
> -	mdp =3D &mouse9x13;
> +	mdp =3D (scp->font_size < 14) ? &mouse9x13 : &mouse10x16;
> =20
>  	/*
>  	 * Determine overlap with the border and then if removing, do nothing


There is a lot of development going on theses days for syscons. What's abou=
t vt()? vt() is
considered broken for x11/nvidia-driver and vt() is considered a requiremen=
t when UEFI is
boot scheme, isn't it?

I'm just curious.

regards,

oh
--=20
O. Hartmann

Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr
Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.=
 4 BDSG).

--Sig_/JAMg6MZfkRLtgW_8a6nHCI4
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWPKA0AAKCRDS528fyFhY
lJqfAgCPq5IumlxQf2Uz7bYZPQrXGlScayd+aZ1in3C9ijuf4umTj5hB/a4SyIEX
Yf/c6CmBJ+Xd59kodhnr3egZ/8YTAf9JKnsHTdhGBgAvGhRJVnUU8GRMIFH2NqGs
TGNf6lxT/ojJNv2yzjFD9ys/hsUYYHMwKgwXHHTi/Aqd72hmMdGo
=K6Pe
-----END PGP SIGNATURE-----

--Sig_/JAMg6MZfkRLtgW_8a6nHCI4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170415222136.6c58a00d>