From owner-freebsd-current@freebsd.org Sat Apr 15 20:21:52 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DD8ED3FDC9; Sat, 15 Apr 2017 20:21:52 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 134CBD6; Sat, 15 Apr 2017 20:21:51 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([85.179.171.81]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lt1eU-1c1W291fDe-012ZOI; Sat, 15 Apr 2017 22:21:43 +0200 Date: Sat, 15 Apr 2017 22:21:36 +0200 From: "O. Hartmann" To: Bruce Evans Cc: FreeBSD CURRENT , 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> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/JAMg6MZfkRLtgW_8a6nHCI4"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:hwROznmUk/jAPRB/idEVZfJMZf52hVfSZVj8WbX5x3lT4q72i1W BNNFjcbVkVcS26GOZy9Q8KGsYuwkldt+wIwBZIlZW2aXK8s04KcHhJbSkX3JOSJe+KuzKO5 wVeAdI82uWzlH8FlhUftfnXYCf1Rzdb6/67UcE5jr7vZij5zvSBpK5pgYkCdDLMVu7sSi1O PY8P2QfW4PD5nAHMOBtaw== X-UI-Out-Filterresults: notjunk:1;V01:K0:DIfKdXluKU8=:sK4D6n/shaU7wpD474fuoT XPADMEaymNY5lava7h8ay8lIEc9v9MrUTCOpq5GQHvPWsWSHxMvCf/mNYI2OMYOfynRzam+g7 XQzA5GW2p6Ux+RpDCpD7rITysC4xEFcCxDNJblBqNBc4kU0VR600/PUV0AYVwLYTmSdldwdqk +jN38JeoNlSEG4wv4m+1Pa3iXU1Q0yOBjO/jQZPMGAif2ZnZyE6Fku1rY8Ad4d66CQ676KpsR TweDaEsbUZOuYBOMRkH48tXi79CiEa0Oa8zOftJwCDQ/Z/CcB+gjqTugAxI9T6B4NJJ9704ZF CC3Kk8UMkXXrLhQXY5Mb1LR2rxxkbVlwuDvvEKbhbCVVpWeQVnOH6YqnJJ05224GbzJl1WoOU hBA1eVUFR3MRQ2YrzSvdEMgUyT1VmBbutcPGafki4Am3QUAcx1lLISZaWiDYF32HFVCn0Kyik 4XAABteJAfGXgBj+GpjFrUAbUPrfx8IGBxsCBYwfpS3EV94uOeQbJecUu0f9smaQt5fSYnuhr nwc5SGDPJERjX1nVG1feTG4gZBMtLzt3MK5vM9Y5wj1Hux2DXHr6pkxoNOKzuGEmDpKvzVisx /XlQU5/AbKKAjhDI7XQVUnP02KBv0zlNCRTYAG0PJ/Nk/dc1/3X7APjDj1Ch6zru6d+G1QhqW u6Ob8cM65AJRSzC0/0+YqcGJ8YfK0cvED9fkVf31VyftzivVV7WknOREbZagh2KHbzHmtj6nJ yd+4znEJmJ+lSq+WHwjjwX63O9ly9ee5hAgkcn9QJ8YKlOYGlrWPc1UTNEU= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 20:21:52 -0000 --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 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--